Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created May 22, 2024 22:52
Show Gist options
  • Save pmarreck/6f61ba7b01411baa664238cbed3edeec to your computer and use it in GitHub Desktop.
Save pmarreck/6f61ba7b01411baa664238cbed3edeec to your computer and use it in GitHub Desktop.
Compact datetime format for Elixir use
# requires the Timex library though
Timex.format!(Timex.now(), "%Y%m%d%H%M%S.%L", :strftime)
@pmarreck
Copy link
Author

example output:

20240522224814.776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment