Created
December 9, 2014 04:14
-
-
Save nguyendangminh/871bf58b67e6642858c6 to your computer and use it in GitHub Desktop.
Working with time in Ruby
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
# Timestamp | |
puts Time.now | |
puts Time.now.to_s | |
puts Time.now.to_i | |
puts Time.now.to_i.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment