Skip to content

Instantly share code, notes, and snippets.

@irr
Created July 6, 2010 17:32
Show Gist options
  • Save irr/465661 to your computer and use it in GitHub Desktop.
Save irr/465661 to your computer and use it in GitHub Desktop.
unix time
% same as date +%s
Time = fun() -> {Megasecs, Secs, _Microsecs} = erlang:now(), ((Megasecs * 1000000) + Secs) end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment