NaiveDateTime.to_gregorian_seconds

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

to_gregorian_seconds(map)

View Source (since 1.11.0)

Specs

to_gregorian_seconds(Calendar.naive_datetime()) ::
  {integer(), non_neg_integer()}

Converts a NaiveDateTime struct to a number of gregorian seconds and microseconds.

Examples

iex> NaiveDateTime.to_gregorian_seconds(~N[0000-01-01 00:00:01])
{1, 0}
iex> NaiveDateTime.to_gregorian_seconds(~N[2020-05-01 00:26:31.005])
{63_755_511_991, 5000}