Skip to content

Instantly share code, notes, and snippets.

@whazzmaster
Created September 1, 2017 20:01
Show Gist options
  • Save whazzmaster/838be5dbbb9c63f35029cf8c4ab24e6c to your computer and use it in GitHub Desktop.
Save whazzmaster/838be5dbbb9c63f35029cf8c4ab24e6c to your computer and use it in GitHub Desktop.
scalar :time, description: "ISOz time" do
parse &Timex.DateFormat.parse(&1.value, "{ISOz}")
serialize &Timex.DateFormat.format!(&1, "{ISOz}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment