Template:Ctime/doc
| Description | current output | |
|---|---|---|
A |
am/pm of day | am |
a |
a/p of shí | a |
B |
Bāzì upon solar | KH-KH-GW-KH |
b |
Bāzì upon lunar | BW-WX-GW-KH |
C |
Stem-branch of year | Template:Stems and branchesnián |
c |
Stem-branch of year | 42 |
D |
Weekday, 0=Sunday | 5 |
d |
Day of month | 14 |
E |
Year upon an epoch | 4724AH |
e |
Year upon an 114BC | 2140 |
F |
Month name | Jiǔyuè |
FdY |
Date in common format | Jiǔyuè 14, 2026 |
f |
Full month number | 09 |
G |
Gēng | Wǔgēng |
g |
Gēng number | 5 |
go |
Gēngdiǎn | 5:11 |
H |
Hour in 24h format | 05 |
Hms |
Time in 24h format | 05:15:27 |
h |
Hour in 12h format | 05 |
I |
Intercalary flag | 0 |
i |
Mils pass shí | 64 |
J |
Mils past diǎn | 64 |
j |
Mils past kè | 54 |
K |
Kè | 21 |
k |
Kè in shí | 1 |
kS |
Shíkè | premosh
1 ke54 fen |
L |
Intercalary month. | 0 |
l |
Lunar information | 2266 |
M |
Month number | 9 |
m |
Minute | 15 |
N |
Month index | 9 |
n |
Month offset | 235 |
O |
Diǎn | 13 |
o |
Diǎn in gēng | 1 |
oG |
Gēngdiǎn | wug 1 point 14 fen |
P |
Phase and zodiac | Year of fiery Horse |
p |
Phase and zodiac | Huǒmǎnián |
Q |
Festival | |
q |
Solar term name | Expression error: Unexpected < operator. |
R |
Solar term number | Expression error: Unrecognized punctuation character "[". |
r |
Day before solar term | Expression error: Unrecognized punctuation character "[". |
S |
Shí | Mǎo |
Sk |
Shíkè | 15:54 |
s |
Second | 27 |
T |
Year length | 354 |
t |
Month length | 30 |
U |
Timestamp(hjjs) | 0712/10130914R2154 |
u |
Timestamp | 20260914T051527 |
V |
Solar term of year | Expression error: Unexpected < operator. |
v |
Solar term of month | Expression error: Unexpected < operator. |
W |
Week of year | 36 |
w |
Week of month | 2 |
Y |
Year number | 2026 |
Yfd |
Date in regular format | 2026-09-14 |
y |
Year offset | 47 |
Z |
Stem-branches of day | 6 |
z |
Day of year | 249 |
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.
| This is a documentation subpage for Template:Ctime. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
ctime is the format in the Gregorian calendar, today is default and gives 2026-10-23
ctime:FdY is the common format. Today is default and gives Jiǔyuè 14, 2026
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 2026-09-14
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 KH-KH-GW-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 BW-WX-GW-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 6
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 42
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 Template:Stems and branchesnián
ctime:P is the name of the year in phase-zodiac format. This year is default and gives Year of fiery Horse
ctime:E|epoch|symbol is the number of the year upon the given epoch. This year is default and gives 4724AH
Notes: if the epoch is BC, add -, and the default is 2698BC
ctime:Hms is the iso format, now is default and gives 05:15:27
ctime:go is the regular format for Gēngdiǎn, now is default and gives 5:11
ctime:Sk is the regular format for Shíkè, now is default and gives 15:54
ctime:oG is the common format for Gēngdiǎn, now is default and gives wug 1 point 14 fen
ctime:kS is the common format for Shíkè, now is default and gives premosh
1 ke54 fen