pub type Time { Time(hours: Hour, minutes: Minute) }
Time(hours: Hour, minutes: Minute)
pub fn compare(a: Time, b: Time) -> Order
Compare if a is before (lower than) than b.
a
b
pub fn format(time: Time, context: Context) -> String
Format a time to a string.
pub fn format_iso(time: Time) -> String
Format a time to an hh:mm 24 hour string.
hh:mm
pub fn nil_time() -> Time
Get a time at hour 0 and minute 0.
pub fn parse(str: String) -> Result(Time, Nil)
Parse a time from an hh:mm format string.