Difference between revisions 1591582 and 1591583 on mlwiki

<noinclude>{{pp-semi|small=yes}}</noinclude><includeonly>These templates convert [[Julian day]] to [[Chinese calendar]].

The allowed input date range is from [[4|0004]]-[[February 10|02-10]] <small>(西漢平帝元始四年正月初一)</small> to [[2044]]-[[January 29|01-29]].

== Usage ==
=== {{tl|Chinese calendar/cycle}} ===
Convert Julian day to [[sexagenary cycle]] number since [[2637 BC]].

=== {{tl|Chinese calendar/year}} ===
Convert Julian day to year number in its sexagenary cycle. (0=甲子, 1=乙丑, 2=丙寅, ..., 59=癸亥)

=== {{tl|Chinese calendar/month}} ===
Convert Julian day to month in year, [[intercalary month]]s are negative numbered. (1=正月, -1=闰正月, 2=二月, -2=闰二月, ....)

=== {{tl|Chinese calendar/day}} ===
Convert Julian day to day in month. (1=初一, 2=初二, ..., 29=廿九, 30=三十)

== Examples ==
# Current date: {{Chinese calendar/year name|{{Chinese calendar/year|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}年{{Chinese calendar/month name|{{Chinese calendar/month|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}月{{Chinese calendar/day name|{{Chinese calendar/day|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}日

== References ==
<div class="references-small">
# [http://wwwsinocal.sinica.edu.tw/ftms/luso.htm 中央研究院計算中心 兩千年中西曆轉換]
<references />
</div>{{#ifeq:{{SUBJECTPAGENAME}}|Template:Chinese calendar||{{{{SUBJECTPAGENAME}}/doc}}}}  <!-- interwiki and other documentation for the Chinese calendar templates --></includeonly><noinclude>
{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>