Time
Functions
Returns the UTC day of the given time.
(Time.from(2018, 4, 5)
|> Time.day()) == 5
Returns the end of the day / month / week of the given time.
Formats the time using the given pattern.
Retruns a new UTC date from the given parameters.
Time.from(2018, 4, 5)
Tries to parse the given string as an ISO date.
Time.fromIso("2018-04-05T00:00:00.000Z")
Returns the UTC month of the given time.
(Time.from(2018, 4, 5)
|> Time.month()) == 4
Returns the next month from the given time.
Returns the next week from the given time.
Returns the current time.
Returns the previous month from the given time.
Returns the previous week from the given time.
Returns an array of days from the given start to given end time.
Returns the relative time from the given times (in english).
Returns the start of the day / month / week of the given time.
Formats the given time to the ISO format.
Time.toIso(Tome.today()) == "2018-04-05T00:00:00.000Z"
Returns the time of the begging of today.
Returns the UTC year of the given time.
(Time.from(2018, 4, 5)
|> Time.year()) == 2018