Skip to content

Instantly share code, notes, and snippets.

@cwc
Created July 28, 2016 07:45
Show Gist options
  • Save cwc/2ca890e5d2d4b5166dcf9f56d5c638f8 to your computer and use it in GitHub Desktop.
Save cwc/2ca890e5d2d4b5166dcf9f56d5c638f8 to your computer and use it in GitHub Desktop.
Shouldn't this timestamp parse correctly?
iex(8)> time
"2016-06-27 13:53:45.149637763-0400"
iex(9)> Timex.parse! time, "{ISO:Extended}"
%Inspect.Error{message: "got ArgumentError with message \"argument error\" while inspecting %{__struct__: DateTime, calendar: Calendar.ISO, day: 27, hour: 13, microsecond: {0, 9}, minute: 53, month: 6, second: 45, std_offset: 0, time_zone: \"Etc/GMT+4\", utc_offset: -14400, year: 2016, zone_abbr: \"GMT+4\"}"}
iex(10)>
@cwc
Copy link
Author

cwc commented Jul 28, 2016

@bitwalker I need another pair of eyes; what am I doing wrong here? 😓

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