DateAndTime::Zones
module DateAndTime::Zones
Public Instance Methods
Returns the simultaneous time in Time.zone
if a zone is given or if Time.zone_default is set. Otherwise, it returns the current time.
Time.zone = 'Hawaii' # => 'Hawaii' DateTime.utc(2000).in_time_zone # => Fri, 31 Dec 1999 14:00:00 HST -10:00 Date.new(2000).in_time_zone # => Sat, 01 Jan 2000 00:00:00 HST -1