2024-08-31
Description | current output | |
---|---|---|
A |
am/pm of day | {{ctime:A}}
|
a |
a/p of shí | {{ctime:a}}
|
B |
Bāzì upon solar | {{ctime:B}}
|
b |
Bāzì upon lunar | {{ctime:b}}
|
C |
Stem-branch of year | {{ctime:C}}
|
c |
Stem-branch of year | {{ctime:c}}
|
D |
Weekday, 0=Sunday | {{ctime:D}}
|
d |
Day of month | {{ctime:d}}
|
E |
Year upon an epoch | {{ctime:E|-2698|AH}}
|
e |
Year upon an 114BC | {{ctime:e}}
|
F |
Month name | {{ctime:F|2019|05|01}}
|
FdY |
Date in common format | {{ctime:FdY}}
|
f |
Full month number | {{ctime:f}}
|
G |
Gēng | {{ctime:G}}
|
g |
Gēng number | {{ctime:g}}
|
go |
Gēngdiǎn | {{ctime:go}}
|
H |
Hour in 24h format | {{ctime:H}}
|
Hms |
Time in 24h format | {{ctime:Hms}}
|
h |
Hour in 12h format | {{ctime:h}}
|
I |
Intercalary flag | {{ctime:I}}
|
i |
Mils pass shí | {{ctime:i}}
|
J |
Mils past diǎn | {{ctime:J}}
|
j |
Mils past kè | {{ctime:j}}
|
K |
Kè | {{ctime:K}}
|
k |
Kè in shí | {{ctime:k}}
|
kS |
Shíkè | {{ctime:kS}}
|
L |
Intercalary month. | {{ctime:L}}
|
l |
Lunar information | {{ctime:l}}
|
M |
Month number | {{ctime:M}}
|
m |
Minute | {{ctime:m}}
|
N |
Month index | {{ctime:N}}
|
n |
Month offset | {{ctime:n}}
|
O |
Diǎn | {{ctime:O}}
|
o |
Diǎn in gēng | {{ctime:o}}
|
oG |
Gēngdiǎn | {{ctime:oG}}
|
P |
Phase and zodiac | {{ctime:P}}
|
p |
Phase and zodiac | {{ctime:p}}
|
Q |
Festival | {{ctime:Q}}
|
q |
Solar term name | {{ctime:q}}
|
R |
Solar term number | {{ctime:R}}
|
r |
Day before solar term | {{ctime:r}}
|
S |
Shí | {{ctime:S}}
|
Sk |
Shíkè | {{ctime:Sk}}
|
s |
Second | {{ctime:s}}
|
T |
Year length | {{ctime:T}}
|
t |
Month length | {{ctime:t|{{ctime:Y}}|{{ctime:N}}}} |
U |
Timestamp(hjjs) | {{ctime:U}}
|
u |
Timestamp | {{ctime:u}}
|
V |
Solar term of year | {{ctime:V}}
|
v |
Solar term of month | {{ctime:v}}
|
W |
Week of year | {{ctime:W}}
|
w |
Week of month | {{ctime:w}}
|
Y |
Year number | {{ctime:Y}}
|
Yfd |
Date in regular format | {{ctime:Yfd}}
|
y |
Year offset | {{ctime:y}}
|
Z |
Stem-branches of day | {{ctime:Z}}
|
z |
Day of year | {{ctime:z}}
|
The templates convert the date and time in the Gregorian calendar to the Chinese calendar. The range of date is within the nearest 11 Metonic cycles, from the year 1905 to 2113.
Usage
editDate related
editctime
is the format in the Gregorian calendar, today is default and gives 2024-08-31
ctime:FdY
is the common format. Today is default and gives {{ctime:F}}
{{ctime:d}}
, {{ctime:Y}}
Note: Yīyuè is the intercalary month after Zhēngyuè; Shíèryuè is the common month of intercalary Làyuè.
ctime:Yfd
is the regular format. Today is default and gives {{ctime:Y}}
-{{ctime:f}}
-{{ctime:d}}
Notes: 00:Zhēngyuè;01:Zhēngyuè/Yīyuè;02~11:Èryuè~Shíyīyuè;12:Shíèryuè/Làyuè;13:Làyuè;R2~R9:Rùnèryuè~Rùnjǐuyuè;R0:Rùnshíyuè;R1:Rùnshíyiyuè
ctime:B
is the date and shí in Bāzì format upon solar term. Now is default and gives {{ctime:B}}
Notes: Using the initial of pinyin except Z for ji, and K for gui.The range of the year is from the day of the winter solstice to the day before the next winter solstice.
ctime:b
is the date and shí in Bāzì format upon lunar month. Now is default and gives {{ctime:b}}
Notes: Using the initial of pinyin except Z for jǐ, and K for guì. The years are beginning on Zhēngyuè 1st. The stem-branches of the intercalary month is the same as the corresponding common month. The days are beginning at dawn.
Day related
editctime:Z
is the number of the date in stem-branches format. Today is default and gives {{ctime:Z}}
Notes: from 0 to 59, and 0 is Jiǎzǐ
Month related
editSolar term related
editYear related
editctime:c
is the number of the year in stem-branches format. This year is default and gives {{ctime:c}}
Notes: from 0 to 59, and 0 is Jiǎzǐ. The year means the calendric year beginning at Zhēngyuè 1st
ctime:C
is the name of the year in stem-branches format. This year is default and gives {{ctime:C}}
ctime:P
is the name of the year in phase-zodiac format. This year is default and gives {{ctime:P}}
ctime:E|epoch|symbol
is the number of the year upon the given epoch. This year is default and gives {{ctime:E|-2698|AH}}
Notes: if the epoch is BC, add -, and the default is 2698BC
Time related
editctime:Hms
is the iso format, now is default and gives {{ctime:Hms}}
ctime:go
is the regular format for Gēngdiǎn, now is default and gives {{ctime:go}}
ctime:Sk
is the regular format for Shíkè, now is default and gives {{ctime:Sk}}
ctime:oG
is the common format for Gēngdiǎn, now is default and gives {{ctime:oG}}
ctime:kS
is the common format for Shíkè, now is default and gives {{ctime:kS}}