Skip to content

Instantly share code, notes, and snippets.

@stefanluptak
Created August 2, 2022 11:48
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 stefanluptak/bd4fff6a3bfbbc99fba893d690159ef2 to your computer and use it in GitHub Desktop.
Save stefanluptak/bd4fff6a3bfbbc99fba893d690159ef2 to your computer and use it in GitHub Desktop.

Datix LiveBook

Mix.install([
  {:datix, "~> 0.1.0"}
])
:ok

Examples

Datix.Time.parse!("09:10:20", "%H:%M:%S")
~T[09:10:20]
Datix.Date.parse!("2022-08-02", "%Y-%m-%d")
~D[2022-08-02]
Datix.NaiveDateTime.parse!("2022-08-02 09:10:20", "%Y-%m-%d %H:%M:%S")
~N[2022-08-02 09:10:20]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment