class ActiveSupport::TimeZone
def at(secs)
Time.utc(2000).to_f # => 946684800.0
Time.zone = 'Hawaii' # => "Hawaii"
of +self+ from number of seconds since the Unix epoch.
Method for creating new ActiveSupport::TimeWithZone instance in time zone
def at(secs) Time.at(secs).utc.in_time_zone(self) end