Skip to content

Instantly share code, notes, and snippets.

@nguyendangminh
Created December 9, 2014 04:14
Show Gist options
  • Save nguyendangminh/871bf58b67e6642858c6 to your computer and use it in GitHub Desktop.
Save nguyendangminh/871bf58b67e6642858c6 to your computer and use it in GitHub Desktop.
Working with time in Ruby
# 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