Created
March 13, 2012 05:19
-
-
Save bfabry/2026967 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
[1] pry(main)> '2007-01-01'.to_time.at_beginning_of_day | |
=> Mon Jan 01 00:00:00 UTC 2007 | |
[2] pry(main)> '2007-01-01'.to_datetime.at_beginning_of_day | |
=> Mon, 01 Jan 2007 12:00:00 +0000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something seriously hokey going on here