Calendars v0.1.2 Calendars.Chinese View Source

Documentation for the Chinese calendar (DR4).

Link to this section Summary

Functions

Chinese Name. Combination is only possible if stem and branch are equal mod 2.

Returns a Chinese date from its parts.

Dragon Festival.

Returns the epoch of the Chinese calendar.

Converts source_calendar_date of the source_calendar into the corresponding Chinese date.

Converts the fixed date in to the corresponding Chinese date.

Converts the Julian Day number jd into the corresponding Chinese date.

Returns the keyword used to access data in the DR4 sample data.

Chinese New Year.

Qingming.

Converts chinese_date into the corresponding date of target_calendar.

Converts chinese_date into the corresponding fixed date.

Converts chinese_date into the corresponding Julian Day number.

Link to this section Types

Specs

t() :: {cycle(), year(), month(), leap(), day()}

Link to this section Functions

Link to this function

chinese_branch(chinese_name)

View Source

Chinese Branch.

Link to this function

chinese_name(stem, branch)

View Source

Chinese Name. Combination is only possible if stem and branch are equal mod 2.

Link to this function

chinese_stem(chinese_name)

View Source

Chinese Stem.

Link to this function

date(cycle, year, month, leap, day)

View Source

Returns a Chinese date from its parts.

Dragon Festival.

Returns the epoch of the Chinese calendar.

Link to this function

from_date(source_calendar_date, source_calendar)

View Source

Converts source_calendar_date of the source_calendar into the corresponding Chinese date.

Converts the fixed date in to the corresponding Chinese date.

Converts the Julian Day number jd into the corresponding Chinese date.

Returns the keyword used to access data in the DR4 sample data.

Chinese New Year.

Qingming.

Link to this function

to_date(chinese_date, target_calendar)

View Source

Converts chinese_date into the corresponding date of target_calendar.

Converts chinese_date into the corresponding fixed date.

Converts chinese_date into the corresponding Julian Day number.