Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The JSON from JIRA REST calls contains dates like:

Code Block
"created":"2014-01-08T11:39:52.489+1100"

In Ruby this is parsed with:

Code Block
DateTime.strptime('2014-01-08T11:39:52.489+1100', '%Y-%m-%dT%H:%M:%S.%L%z')
 => #<DateTime: 2014-01-08T11:39:52+11:00 ((2456666j,2392s,489000000n),+39600s,2299161j)>