Skip to content

Instantly share code, notes, and snippets.

View zxcfer's full-sized avatar
🎯
Focusing

Fernando Vásquez zxcfer

🎯
Focusing
View GitHub Profile
@zxcfer
zxcfer / date_util.erl
Created August 20, 2012 17:34 — forked from zaphar/date_util.erl
Erlang set of utility functions that wrap the calendar module and now() date() and time() functions
-module(date_util).
-compile(export_all).
epoch() ->
now_to_seconds(now())
.
epoch_hires() ->
now_to_seconds_hires(now())
.