utc_offset

utc_offset() Instance Public methods Returns the offset of this time zone from UTC in seconds.

tomorrow

tomorrow() Instance Public methods Returns the next date in this time zone.

today

today() Instance Public methods Return the current date in this time zone.

to_s

to_s() Instance Public methods Returns a textual representation of this time zone.

period_for_utc

period_for_utc(time) Instance Public methods Available so that TimeZone instances respond like TZInfo::Timezone instances.

period_for_local

period_for_local(time, dst=true) Instance Public methods Available so that TimeZone instances respond like TZInfo::Timezone instances.

parse

parse(str, now=now()) Instance Public methods Method for creating new ActiveSupport::TimeWithZone instance in time zone of self from parsed string. Time.zone = 'Hawaii' # => "Hawaii" Time.zone.parse('1999-12-31 14:00:00') # => Fri, 31 Dec 1999 14:00:00 HST -10:00 If upper components are missing from the string, they are supplied from #now: Time.zone.now # => Fri, 31 Dec 1999 14:00:00 HST -10:00 Time.zone.parse('22:30:00') # => Fri, 31 De

now

now() Instance Public methods Returns an ActiveSupport::TimeWithZone instance representing the current time in the time zone represented by self. Time.zone = 'Hawaii' # => "Hawaii" Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00

local_to_utc

local_to_utc(time, dst=true) Instance Public methods Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.

local

local(*args) Instance Public methods Method for creating new ActiveSupport::TimeWithZone instance in time zone of self from given values. Time.zone = 'Hawaii' # => "Hawaii" Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00