NaiveDateTime.utc_now
You're seeing just the function
utc_now
, go back to NaiveDateTime module for more information.
Specs
utc_now(Calendar.calendar()) :: t()
Returns the current naive datetime in UTC.
Prefer using DateTime.utc_now/0
when possible as, opposite
to NaiveDateTime
, it will keep the time zone information.
Examples
iex> naive_datetime = NaiveDateTime.utc_now()
iex> naive_datetime.year >= 2016
true