truncateMinutes method
Removes any information that is equal to or smaller than minutes. Returned instance will have 0 minutes, seconds, milliseconds and microseconds.
Implementation
DateTime truncateMinutes() => DateTime(year, month, day, hour);
Removes any information that is equal to or smaller than minutes. Returned instance will have 0 minutes, seconds, milliseconds and microseconds.
DateTime truncateMinutes() => DateTime(year, month, day, hour);