Created
August 11, 2009 04:00
-
-
Save phinze/165617 to your computer and use it in GitHub Desktop.
This file contains 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
$ ruby --version | |
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux] | |
$ irb | |
irb(main):001:0> require 'date' | |
=> true | |
irb(main):002:0> Date.civil_to_jd(2004,10,20) | |
=> 248812494 | |
irb(main):003:0> Date.jd_to_civil(Date.civil_to_jd(2004,10,20)) | |
=> [2096, -1, 5731] | |
irb(main):004:0> | |
### ^^^^^^ | |
### This is an example of ruby bug #1735 | |
### See http://redmine.ruby-lang.org/issues/show/1735 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment