Packages

Elixir library to manipulate Unix timestamps, named after a voodoo Loa.

Current section

Files

Jump to
dumballah lib dumballah.ex
Raw

lib/dumballah.ex

defmodule Dumballah do
alias Dumballah.Construct
def now do
Construct.elixir_datetime(:erlang.date, :erlang.time)
|> DateTime.to_unix
end
def unix_epoch,
do: :calendar.datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
end