Template:Ctime

From Wikipedia, the free encyclopedia
Jump to: navigation, search

2016-04-12

Documentation icon Template documentation[view] [edit] [history] [purge]
Description current output
A am/pm of day am
a a/p of shí p
B Bāzì upon solar BS-RC-YC-KH
b Bāzì upon lunar BS-RC-YC-KH
C Stem-branch of year Bǐngshēnnián
c Stem-branch of year 32
D Weekday, 0=Sunday 2
d Day of month 6
E Year upon an epoch 4714AH
e Year upon an 114BC 2130
F Month name Sānyuè
FdY Date in common format Sānyuè 6, 2016
f Full month number 03
G Gēng Sìgēng
g Gēng number 4
go Gēngdiǎn 4:479
H Hour in 24h format 04
Hms Time in 24h format 04:19:04
h Hour in 12h format 04
I Intercalary flag 0
i Mils pass shí 79
J Mils past diǎn 29
j Mils past 59
K 17
k in shí 1
kS Shíkè Yínzhèng 1 kè
L Intercalary month. 0
l Lunar information 602
M Month number 3
m Minute 19
N Month index 3
n Month offset 59
O Diǎn 10
o Diǎn in gēng 4
oG Gēngdiǎn Sìgēng 4 diǎn
P Phase and zodiac Year of fiery monkey
p Phase and zodiac Huǒhóunián
Q Festival
q Solar term name
R Solar term number 7
r Day before solar term 7
S Shí Yín
Sk Shíkè 26:59
s Second 04
T Year length 355
t Month length 30
U Timestamp(hjjs) 0712/10030306Y4479
u Timestamp 20160306T041904
V Solar term of year 4
v Solar term of month 0
W Week of year 10
w Week of month 2
Y Year number 2016
Yfd Date in regular format 2016-03-06
y Year offset 38
Z Stem-branches of day 1
z Day of year 65

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[edit]

Date related[edit]

ctime is the format in the Gregorian calendar, today is default and gives 2016-04-12

ctime:FdY is the common format. Today is default and gives Sānyuè 6, 2016
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 2016-03-6
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 BS-RC-YC-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 BS-RC-YC-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.

Day related[edit]

ctime:Z is the number of the date in stem-branches format. Today is default and gives 1
Notes:from 0 to 59, and 0 is Jiǎzǐ

Month related[edit]

Solar term related[edit]

Year related[edit]

ctime:c is the number of the year in stem-branches format. This year is default and gives 32
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 Bǐngshēnnián

ctime:P is the name of the year in phase-zodiac format. This year is default and gives Year of fiery monkey

ctime:E|epoch|symbol is the number of the year upon the given epoch. This year is default and gives 4714AH
Notes:if the epoch is BC, add -, and the default is 2698BC

Time related[edit]

ctime:Hms is the iso format, now is default and gives 04:19:04

ctime:go is the regular format for Gēngdiǎn, now is default and gives 4:479

ctime:Sk is the regular format for Shíkè, now is default and gives 26:59

ctime:oG is the common format for Gēngdiǎn, now is default and gives Sìgēng 4 diǎn

ctime:kS is the common format for Shíkè, now is default and gives Yínzhèng 1 kè