Skip to content

Instantly share code, notes, and snippets.

@darkleaf
Created January 24, 2013 10:57
Show Gist options
  • Save darkleaf/4620011 to your computer and use it in GitHub Desktop.
Save darkleaf/4620011 to your computer and use it in GitHub Desktop.
time
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