User:Python eggs/Chinese calendar/doc

From Wikipedia, the free encyclopedia

These templates convert Julian day to Chinese calendar.

The allowed input date range is from 0004-02-10 (西漢平帝元始四年正月初一) to 2044-01-29.

Usage

{{User:Python eggs/Chinese calendar/cycle}}

Convert Julian day to sexagenary cycle number since 2637 BC.

{{User:Python eggs/Chinese calendar/year}}

Convert Julian day to year number in its sexagenary cycle. (0=甲子, 1=乙丑, 2=丙寅, ..., 59=癸亥)

{{User:Python eggs/Chinese calendar/month}}

Convert Julian day to month in year, intercalary months are negative numbered. (1=正月, -1=闰正月, 2=二月, -2=闰二月, ....)

{{User:Python eggs/Chinese calendar/day}}

Convert Julian day to day in month. (1=初一, 2=初二, ..., 29=廿九, 30=三十)

Examples

  1. Current date: 甲辰年三月二十

References

  1. 中央研究院計算中心 兩千年中西曆轉換

See also