View Source Cldr.Calendar.Era.Japanese (ex_cldr_calendars_japanese v1.0.1)

Implements a year_of_era/{1, 2} function to return the year of era and the era number for the Cldr.Calendar.Era.Japanese 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

@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.

@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.

Link to this function

year_of_era(iso_days, year)

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