Dumballah v2.3.0 Dumballah

Provides basic functions related to Unix time.

Summary

Functions

Returns your current local time in seconds. If you need the current UTC time, use DateTime.utc_now/0, which is part of the Elixir standard library since 1.3

Returns the Unix epoch in Gregorian seconds

Functions

now()

Specs

now :: timestamp :: integer

Returns your current local time in seconds. If you need the current UTC time, use DateTime.utc_now/0, which is part of the Elixir standard library since 1.3.

Examples

iex> Dumballah.now
1474321894
unix_epoch()

Specs

unix_epoch :: timestamp :: integer

Returns the Unix epoch in Gregorian seconds.

Examples

iex> Dumballah.unix_epoch
62167219200