truncateSeconds method

DateTime truncateSeconds()

Removes any information that is equal to or smaller than seconds. Returned instance will have 0 seconds, milliseconds and microseconds.

Implementation

DateTime truncateSeconds() => DateTime(year, month, day, hour, minute);