Template:Ctime

From Nordic Larp Wiki
Jump to navigation Jump to search

2021-02-28

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 XC-GY-DW-KH
b Bāzì upon lunar XC-GY-BW-KH
C Stem-branch of year Xīnchǒunián
c Stem-branch of year 37
D Weekday, 0=Sunday 0
d Day of month 17
E Year upon an epoch 4719AH
e Year upon an 114BC 2135
F Month name Zhēngyuè
FdY Date in common format Zhēngyuè 17, 2021
f Full month number 01
G Gēng Sìgēng
g Gēng number 4
go Gēngdiǎn 4:08
H Hour in 24h format 02
Hms Time in 24h format 02:45:18
h Hour in 12h format 02
I Intercalary flag 0
i Mils pass shí 188
J Mils past diǎn 38
j Mils past 28
K 11
k in shí 3
kS Shíkè chosh

3 ke28 fen

L Intercalary month. 0
l Lunar information 2729
M Month number 1
m Minute 45
N Month index 1
n Month offset 0
O Diǎn 6
o Diǎn in gēng 0
oG Gēngdiǎn sig 88 fen
P Phase and zodiac Year of metallic Ox
p Phase and zodiac Jīnníunián
Q Festival
q Solar term name 22, Insects Waken
R Solar term number 4
r Day before solar term 5
S Shí Chǒu
Sk Shíkè 03:28
s Second 18
T Year length 354
t Month length 29
U Timestamp(hjjs) 0712/10080117Y4090
u Timestamp 20210117T024518
V Solar term of year 1
v Solar term of month 1
W Week of year 3
w Week of month 3
Y Year number 2021
Yfd Date in regular format 2021-01-17
y Year offset 42
Z Stem-branches of day 43
z Day of year 17

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

Date related

ctime is the format in the Gregorian calendar, today is default and gives 2021-02-28

ctime:FdY is the common format. Today is default and gives Zhēngyuè 17, 2021
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 2021-01-17
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 XC-GY-DW-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 XC-GY-BW-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

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

Month related

Solar term related

Year related

ctime:c is the number of the year in stem-branches format. This year is default and gives 37
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 Xīnchǒunián

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

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

Time related

ctime:Hms is the iso format, now is default and gives 02:45:18

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

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

ctime:oG is the common format for Gēngdiǎn, now is default and gives sig 88 fen

ctime:kS is the common format for Shíkè, now is default and gives chosh 3 ke28 fen