ref: b88dc2174f25b7ca08a0a7bc42bf981488de54c9
dir: /lib/date/types.myr/
use std pkg date = type instant = struct actual : std.time /* epoch time in microseconds */ tzoff : duration /* timezone offset in microseconds */ year : int /* year, starting at 0 (ie, 1 BCE) */ mon : int /* month, [1..12] */ day : int /* day, [1..31] */ wday : int /* weekday, [0..6] */ h : int /* hour: [0..23] */ m : int /* minute: [0..59] */ s : int /* second: [0..59] */ us : int /* microsecond: [0..999,999] */ tzname : byte[:] /* current time zone name */ _tzbuf : byte[32] /* current time zone name storage */ ;; type duration = std.time type period = union `Year int `Month int `Day int `Hour int `Minute int `Second int ;; const Datetimefmt const Timefmt const Datefmt ;; const Datetimefmt = "%Y-%m-%d %H:%M:%S %z" const Timefmt = "%h:%m:{} %z" const Datefmt = "%Y-%m-%d %z"