Created
September 27, 2013 07:18
-
-
Save eadz/6725160 to your computer and use it in GitHub Desktop.
Ruby missing time
This file contains hidden or 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
» Time.parse("1 Jan 1111") + 1.year | |
=> 1111-12-25 00:00:00 +1000 | |
» Time.parse("1 Jan 1500") + 1.year | |
=> 1500-12-23 00:00:00 +1000 | |
» Time.parse("1 Jan 1900") + 1.year | |
=> 1901-01-01 00:00:00 +1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment