Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created May 7, 2009 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrchrisadams/108110 to your computer and use it in GitHub Desktop.
Save mrchrisadams/108110 to your computer and use it in GitHub Desktop.
>> e = DateTime.strptime('2009-05-07T01:33:23+01:00')
=> Thu, 07 May 2009 01:33:23 0100
>> f = DateTime.strptime('2009-05-06T23:33:23+01:00')
=> Wed, 06 May 2009 23:33:23 0100
>> e - f
=> Rational1, 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment