Skip to content

Instantly share code, notes, and snippets.

@eadz
Created September 27, 2013 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eadz/6725160 to your computer and use it in GitHub Desktop.
Save eadz/6725160 to your computer and use it in GitHub Desktop.
Ruby missing time
» 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