Template:Ctime:Y
Appearance
2026
Examples
| Input | Output |
|---|---|
{{Ctime:Y|2026-07-22}} | 2026 |
{{Ctime:Y|2025-07-22}} | 2025 |
{{Ctime:Y|2022-07-22}} | 2022 |
{{Ctime:Y|2019-07-22}} | 2019 |
{{Ctime:Y|2016-07-22}} | 2016 |
{{Ctime:Y|2013-07-22}} | 2013 |
{{Ctime:Y|2010-07-22}} | 2010 |
{{Ctime:Y|2007-07-22}} | 2007 |
{{Ctime:Y|2004-07-22}} | 2004 |
{{Ctime:Y|2001-07-22}} | 2001 |
{{Ctime:Y|1998-07-22}} | 1998 |
{{Ctime:Y|1995-07-22}} | 1995 |
{{Ctime:Y|1992-07-22}} | 1992 |
To get the Gregorian year number in the Chinese calendar
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| date | 1 d | the date in the Gregorian calendar.
| Date | optional |
This template is used to obtain the Gregorian year number that corresponds to the current Lunar calendar year. This is useful for January/February, where the Lunar year number before Lunar New Year is one year before.