at

at(secs) Instance Public methods Method for creating new ActiveSupport::TimeWithZone instance in time zone of self from number of seconds since the Unix epoch. Time.zone = 'Hawaii' # => "Hawaii" Time.utc(2000).to_f # => 946684800.0 Time.zone.at(946684800.0) # => Fri, 31 Dec 1999 14:00:00 HST -10:00

formatted_offset

formatted_offset(colon=true, alternate_utc_string = nil) Instance Public methods Returns the offset of this time zone as a formatted string, of the format â+HH:MMâ.

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

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.

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

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

period_for_local

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

period_for_utc

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

to_s

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

today

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