Skip to content

Instantly share code, notes, and snippets.

@codeslinger
Created March 19, 2013 16:34
Show Gist options
  • Save codeslinger/3837ffba420f7deea466 to your computer and use it in GitHub Desktop.
Save codeslinger/3837ffba420f7deea466 to your computer and use it in GitHub Desktop.
irb(main):016:0> list.created_at
=> 2013-03-03 04:00:00 UTC
irb(main):017:0> list.created_at.to_i
=> 1362283200
irb(main):018:0> Time.at(list.created_at.to_i)
=> 2013-03-02 23:00:00 -0500
irb(main):019:0> Time.now
=> 2013-03-19 12:33:21 -0400
irb(main):020:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment