truncateSeconds method
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);
Removes any information that is equal to or smaller than seconds. Returned instance will have 0 seconds, milliseconds and microseconds.
DateTime truncateSeconds() => DateTime(year, month, day, hour, minute);