You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The JSON from JIRA REST calls contains dates like:

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

In Ruby this is parsed with:

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)> 
  • No labels