utils/parse library

Functions

parseDuration(String? s) Duration
Parses a string representation of a duration in the format "HH:mm" to a Duration object.
toHoursMinutesFormat(Duration duration) String
Converts a Duration object to a formatted string in the "HH:mm" format.
toHoursMinutesFormatString(String? duration) String
Converts a string representation of a duration in the format "HH:mm" to a formatted string.