Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % ruby -v !10391
- ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
- % bundle exec rails console
- Loading development environment (Rails 3.0.11)
- >> Time.now
- => Tue Apr 03 13:07:13 +0300 2012
- >> Time.zone
- => #<ActiveSupport::TimeZone:0x10168d650 @tzinfo=#<TZInfo::TimezoneProxy: Etc/UTC>, @name="UTC", @utc_offset=nil, @current_period=nil>
- >> Time.zone = "Chihuahua"
- => "Chihuahua"
- >> Time.zone.now
- => Tue, 03 Apr 2012 04:07:30 MDT -06:00
- >> Time.zone.now.to_date
- => 2012-04-02
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement