Skip to content

Instantly share code, notes, and snippets.

@joshuamiller
Created March 14, 2009 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuamiller/78903 to your computer and use it in GitHub Desktop.
Save joshuamiller/78903 to your computer and use it in GitHub Desktop.
22:09 ~ $ erl
Erlang (BEAM) emulator version 5.6.4 [source] [smp:2] [async-threads:0] [kernel-poll:false]
Eshell V5.6.4 (abort with ^G)
1> httpd_util:rfc1123_date(calendar:universal_time()).
"Sat, 14 Mar 2009 07:02:55 GMT"
2> httpd_util:rfc1123_date(erlang:localtime()).
"Sat, 14 Mar 2009 03:03:03 GMT"
3> calendar:universal_time().
{{2009,3,14},{3,4,37}}
4> erlang:localtime().
{{2009,3,13},{23,4,49}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment