Date.to_gregorian_days
You're seeing just the function
to_gregorian_days
, go back to Date module for more information.
Specs
to_gregorian_days(Calendar.date()) :: integer()
Converts a date
struct to a number of gregorian days.
Examples
iex> Date.to_gregorian_days(~D[0000-01-02])
1
iex> Date.to_gregorian_days(~D[2000-01-01])
730_485
iex> Date.to_gregorian_days(~N[2000-01-01 00:00:00])
730_485