Calendrical.Era.Dangi (Calendrical v0.3.1)

Copy Markdown

Implements a year_of_era/{1, 2} function to return the year of era and the era number for the Calendrical.Era.Dangi calendar.

This module is generated at compile time from CLDR era data.

Summary

Functions

Returns the day of era and the era number for a given date in iso_days.

Returns the year of era and the era number for a given date in iso_days.

Functions

day_of_era(iso_days)

@spec day_of_era(integer()) :: {Calendar.day(), Calendar.era()}

Returns the day of era and the era number for a given date in iso_days.

year_of_era(iso_days)

@spec year_of_era(integer()) :: {Calendar.year(), Calendar.era()}

Returns the year of era and the era number for a given date in iso_days.

year_of_era(iso_days, year)

@spec year_of_era(integer(), Calendar.year()) :: {Calendar.year(), Calendar.era()}