Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created September 11, 2008 18:13
Show Gist options
  • Save technicalpickles/10279 to your computer and use it in GitHub Desktop.
Save technicalpickles/10279 to your computer and use it in GitHub Desktop.
(rdb:1) @time = Time.utc(2000, "jan", 1, 20, 15, 1)
Sat Jan 01 20:15:01 UTC 2000
(rdb:1) @note.created_at = @time
Sat Jan 01 20:15:01 UTC 2000
(rdb:1) p @time
Sat Jan 01 20:15:01 UTC 2000
(rdb:1) p @note.created_at
Sat, 01 Jan 2000 15:15:01 EST -05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment