Created
January 24, 2013 10:57
-
-
Save darkleaf/4620011 to your computer and use it in GitHub Desktop.
time
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
Broadcast::ScheduleItem | |
=> Broadcast::ScheduleItem( ... time: time, ...) | |
i = Broadcast::ScheduleItem.last | |
i.time | |
=> 2000-01-01 10:50:07 UTC | |
i.time.class | |
=> Time | |
i.time.utc | |
=> 2000-01-01 10:50:07 UTC | |
i.time.in_time_zone 'Moscow' | |
=> Sat, 01 Jan 2000 13:50:07 MSK +03:00 | |
t = Time.now | |
=> 2013-01-24 14:56:24 +0400 | |
t.utc | |
=> 2013-01-24 10:56:24 UTC | |
t.in_time_zone 'Moscow' | |
=> Thu, 24 Jan 2013 14:56:24 MSK +04:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment