Calendar Description - Scheme roc
The Republic of China calendar or ROC calendar is a variant of the Gregorian calendar. Also known as Minguo calendar. The calendar scheme is identical to the Gregorian calendar, except the year count starts with year 1 in year Gregorian year 1912 (The founding of the Republic of China).
Use Case
- Taiwan since 1912, the official calendar since 1945.
- Mainland China the period between 1912 and 1949.
Definition
The Republic of China calendar is based on Gregorian calendar and has the same definition except it has a different epoch.
The Record consists of three Fields named year,
month,
and day
.
Record | ||
---|---|---|
year | month | day |
The calendar scheme is implemented by subtracting 1911 from the Gregorian year value.
roc | year | month | day |
---|---|---|---|
1 | 1 | 1 |
g | year | month | day |
---|---|---|---|
1912 | 1 | 1 |
jdn | day |
---|---|
2419403 |
Formats
There are a limited number of formats available with this scheme.
Formats - Grammar roc | |||||
---|---|---|---|---|---|
Code | Rule | Pseudo:in | Pseudo:out | Example | Note |
ymd | text | year month day | ROC yyy/mm/dd | ROC 114/6/14 | D, S |
ymd. | text | year month day | ROC yyy.mm.dd | ROC 114.6.14 | S |
cns7648 | text | yyy-mm-dd | ROC yyy-mm-dd | ROC 114-06-14 | S |
def | text | year month day | yyy mm dd | 114 6 14 | H, S |
u | unit | 9y 9m 9d | 9y 9m 9d | 114y 6m 14d | H |
Notes: D = Default, H = Hidden, S = Range shortcut supported. Example based on jdn# 2460841 |
The cns7648 format is based on the National Standards of the Republic of China CNS 7648 which is similar to the ISO 8601 standard. This is implemented using text rules with the hyphan '-' as a separator. This is the same as the minus character which means it is not possible to show negative years. Therefore proleptic dates are not available with this format.
Script
Script - Module hics:roc |
---|
grammar roc { name "Republic of China"; fields year month day; alias pseudo { dd day; mm month; yyy year; } alias unit { d day; m month; y year; } format ymd { separators "/,:"; inout "ROC {year}|/{month}|/{day}"; } format "ymd." { separators ".,:"; inout "ROC {year}|.{month}|.{day}"; } format cns7648 { separators "-"; inout "ROC {year::lp:03}|-{month::lp:02}|-{day::lp:02}"; pseudo:out "ROC yyy-mm-dd"; pseudo:in "yyy-mm-dd"; } preferred ymd; } scheme roc { name "Republic of China (Gregorian)"; base gregorian year:1911; grammar roc; } |
The script is not dependent on any other script at this time