Date.day_of_era

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

day_of_era(date)

View Source (since 1.8.0)

Specs

day_of_era(Calendar.date()) :: {Calendar.day(), non_neg_integer()}

Calculates the day-of-era and era for a given calendar date.

Returns a tuple {day, era} representing the day within the era and the era number.

Examples

iex> Date.day_of_era(~D[0001-01-01])
{1, 1}

iex> Date.day_of_era(~D[0000-12-31])
{1, 0}