Template:Ctime
2024-11-23
Description | current output | |
---|---|---|
A |
am/pm of day | am |
a |
a/p of shí | p |
B |
Bāzì upon solar | JC-YH-RC-KH |
b |
Bāzì upon lunar | JC-BZ-XM-KH |
C |
Stem-branch of year | Jiǎchénnián |
c |
Stem-branch of year | 40 |
D |
Weekday, 0=Sunday | 6 |
d |
Day of month | -7 |
E |
Year upon an epoch | 4722AH |
e |
Year upon an 114BC | 2138 |
F |
Month name | Shíyīyuè |
FdY |
Date in common format | Shíyīyuè -7, 2024 |
f |
Full month number | 11 |
G |
Gēng | Sāngēng |
g |
Gēng number | 3 |
go |
Gēngdiǎn | 3:13 |
H |
Hour in 24h format | 00 |
Hms |
Time in 24h format | 00:33:16 |
h |
Hour in 12h format | 12 |
I |
Intercalary flag | 0 |
i |
Mils pass shí | 138 |
J |
Mils past diǎn | 88 |
j |
Mils past kè | 18 |
K |
Kè | 2 |
k |
Kè in shí | 2 |
kS |
Shíkè | zish
2 ke18 fen |
L |
Intercalary month. | 0 |
l |
Lunar information | 2349 |
M |
Month number | 11 |
m |
Minute | 33 |
N |
Month index | 11 |
n |
Month offset | 295 |
O |
Diǎn | 1 |
o |
Diǎn in gēng | 1 |
oG |
Gēngdiǎn | sang 1 point 38 fen |
P |
Phase and zodiac | Year of wooden Dragon |
p |
Phase and zodiac | Mùlóngnián |
Q |
Festival | |
q |
Solar term name | 6, Heavy Snow |
R |
Solar term number | 22 |
r |
Day before solar term | 13 |
S |
Shí | Zǐ |
Sk |
Shíkè | 112:18 |
s |
Second | 16 |
T |
Year length | 354 |
t |
Month length | 30 |
U |
Timestamp(hjjs) | 0712/101111-7Y3139 |
u |
Timestamp | 202411-7T003316 |
V |
Solar term of year | 19 |
v |
Solar term of month | 0 |
W |
Week of year | 41 |
w |
Week of month | 0 |
Y |
Year number | 2024 |
Yfd |
Date in regular format | 2024-11--7 |
y |
Year offset | 40 |
Z |
Stem-branches of day | 28 |
z |
Day of year | 288 |
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.
Contents
Usage
ctime
is the format in the Gregorian calendar, today is default and gives 2024-11-23
ctime:FdY
is the common format. Today is default and gives Shíyīyuè -7, 2024
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 2024-11--7
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 JC-YH-RC-KH
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 JC-BZ-XM-KH
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.
ctime:Z
is the number of the date in stem-branches format. Today is default and gives 28
Notes: from 0 to 59, and 0 is Jiǎzǐ
ctime:c
is the number of the year in stem-branches format. This year is default and gives 40
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 Jiǎchénnián
ctime:P
is the name of the year in phase-zodiac format. This year is default and gives Year of wooden Dragon
ctime:E|epoch|symbol
is the number of the year upon the given epoch. This year is default and gives 4722AH
Notes: if the epoch is BC, add -, and the default is 2698BC
ctime:Hms
is the iso format, now is default and gives 00:33:16
ctime:go
is the regular format for Gēngdiǎn, now is default and gives 3:13
ctime:Sk
is the regular format for Shíkè, now is default and gives 112:18
ctime:oG
is the common format for Gēngdiǎn, now is default and gives sang 1 point 38 fen
ctime:kS
is the common format for Shíkè, now is default and gives zish
2 ke18 fen
The above documentation is transcluded from Template:Ctime/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |