Time unit constructors for the ISO 8601 calendar system. These units can be
used with linear_time() to create custom time representations.
Details
The following time units are available in the ISO week date calendar:
year(): ISO year unit (years start on the week containing the first Thursday)week(): Week unit (7-day periods)day(): Day unithour(): Hour unitminute(): Minute unitsecond(): Second unitmillisecond(): Millisecond unit
ISO 8601 weeks always start on Monday and the first week of a year is the week containing the first Thursday of that year. This means that some days in early January may belong to the last week of the previous ISO year, and some days in late December may belong to the first week of the next ISO year.
See also
linear_time() for creating custom time representations,
yearweek() for a pre-defined ISO 8601 year-week representation