Created
June 18, 2014 01:44
-
-
Save dchelimsky/3f9a5b30fe29f20cdf92 to your computer and use it in GitHub Desktop.
strftime for Time and DateTime
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
DateTime.new(2014,1,2,3,4,5.678).strftime("%L") | |
# => "678" | |
Time.new(2014,1,2,3,4,5.678).strftime("%L") | |
# => "677" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment