NaiveDateTime.local_now

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

local_now(calendar \\ Calendar.ISO)

View Source (since 1.10.0)

Specs

local_now(Calendar.calendar()) :: t()

Returns the "local time" for the machine the Elixir program is running on.

WARNING: This function can cause insidious bugs. It depends on the time zone configuration at run time. This can changed and be set to a time zone that has daylight saving jumps (spring forward or fall back).

This function can be used to display what the time is right now for the time zone configuration that the machine happens to have. An example would be a desktop program displaying a clock to the user. For any other uses it is probably a bad idea to use this function.

For most cases, use DateTime.now/2 or DateTime.utc_now/1 instead.

Does not include fractional seconds.

Examples

iex> naive_datetime = NaiveDateTime.local_now()
iex> naive_datetime.year >= 2019
true