Skip to content

Instantly share code, notes, and snippets.

@seancribbs
Created July 9, 2014 19:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
isotime({{Y,Mo,D},{H,Mi,S}}) ->
ISO = io_lib:format("~w-~.2.0w-~.2.0wT~.2.0w:~.2.0w:~6.3.0fZ",
[Y, Mo, D, H, Mi, S]),
unicode:characters_to_binary(ISO).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment