Calendar.ISO.day_of_era

You're seeing just the function day_of_era, go back to Calendar.ISO module for more information.
Link to this function

day_of_era(year, month, day)

View Source (since 1.8.0)

Specs

day_of_era(year(), month(), day()) :: Calendar.day_of_era()

Calculates the day and era from the given year, month, and day.

Examples

iex> Calendar.ISO.day_of_era(0, 1, 1)
{366, 0}
iex> Calendar.ISO.day_of_era(1, 1, 1)
{1, 1}
iex> Calendar.ISO.day_of_era(0, 12, 31)
{1, 0}
iex> Calendar.ISO.day_of_era(0, 12, 30)
{2, 0}
iex> Calendar.ISO.day_of_era(-1, 12, 31)
{367, 0}