This package provides functionality for working with time and strings based
on the ISO 8601 standard i.e. 2016-03-31T12:13:14.22-04:00
Represents one of the seven days of the week
Offset represents the hour and minute timezone offset from UTC.
return the year
return the month
return the day
return the hour
return the minute
return the secon
return the millisecond
return the offset
Returns the day of the week from the Time record
Given an ISO 8601 compatible string, returns a Time record.
ISO8601.fromString "2016-01-01T01:30:00-04:00"
-- { year = 2016, month = 1, day = 1, hour = 1, minute = 30, second = 0, millisecond = 0, offset = (-4,0) }
: ISO8601.Time
ISO8601.fromString "2016-11-07"
--{ year = 2016, month = 11, day = 7, hour = 0, minute = 0, second = 0, millisecond = 0, offset = (0,0) }
: ISO8601.Time
```Converts a Time record to an ISO 8601 formated string.
Converts the Time to milliseconds relative to the Unix epoch: 1970-01-01T00:00:00Z
Converts the milliseconds relative to the Unix epoch to a Time record.
Record representing the time. Offset is tuple representing the hour and minute ± from UTC.