Created
July 28, 2016 07:45
-
-
Save cwc/2ca890e5d2d4b5166dcf9f56d5c638f8 to your computer and use it in GitHub Desktop.
Shouldn't this timestamp parse correctly?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bitwalker I need another pair of eyes; what am I doing wrong here? 😓