Calendar Description
The ISO Ordinal calendar is defined in terms of the Gregorian calendar. It consists of a count of years and days. The year is identical to the Gregorian year. The day is the ordinal number of days since 1st of January in that year. As for the Gregorian calendar, the number of days in a year is 365 or 366.
Use Case
Details of the scheme where published in 1973 by the International Standards Organisation in their ISO 2711:1973 document. This was superseded in 2004 by the ISO 8601:2004 and later publications.
Definition
Record | |
---|---|
year | day |
The ISO Week calendar is defined in terms of the Gregorian calendar. Day one is defined as 1st January.
The Record consists of two Fields named year,
and day
.
The Epoch is set at
isoo | year | day |
---|---|---|
1 | 1 |
g | year | month | day |
---|---|---|---|
1 | 1 | 1 |
jdn | day |
---|---|
1721426 |
Script
Default Script |
---|
grammar isoo { alias field { Day, day; Year, year; } alias pseudo { ddd, Day; yyyy, Year; } alias unit { d, day; y, year; } format yd { rules iso8601 ordinal; } format hc_yd, "(Year)| (Day)"; pref yd; } scheme isoo { name "ISO:8601 Standard Ordinal"; base isoordinal; grammar isoo; } |
example/iso5.hcs Script |
---|
format isoo:y5d { rules iso8601 ordinal year5; } |
example/iso6.hcs Script |
---|
format isoo:y6d { rules iso8601 ordinal year6; } |