Skip to content

Instantly share code, notes, and snippets.

@smathy
Created March 30, 2016 19:16
Show Gist options
  • Save smathy/7af836aec9265bbe71ae88f4113dc1c5 to your computer and use it in GitHub Desktop.
Save smathy/7af836aec9265bbe71ae88f4113dc1c5 to your computer and use it in GitHub Desktop.
[1] pry(main)> t = Time.now
=> 2016-03-30 13:15:52 -0600
[2] pry(main)> Time.use_zone("Darwin") { Time.zone.local *t }
=> Wed, 30 Mar 2016 13:15:52 ACST +09:30
[3] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment