Skip to content

Instantly share code, notes, and snippets.

@pietia
Created January 12, 2009 12:06
Show Gist options
  • Save pietia/45974 to your computer and use it in GitHub Desktop.
Save pietia/45974 to your computer and use it in GitHub Desktop.
irb(main):007:0> DateTime.civil(2009 , 1, 12, 13 , 44 ,29 ,0.0416666679084301 ).to_s => "2009-01-12T13:44:28+01:00"
irb(main):008:0> DateTime.civil(2009 , 1, 12, 13 , 44 ,29 ,Rational(1,24) ).to_s=> "2009-01-12T13:44:29+01:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment