static public Method

TimeZone.new(name, utc_offset)

Create a new TimeZone object with the given name and offset. The offset is the number of seconds that this time zone is offset from UTC (GMT). Seconds were chosen as the offset unit because that is the unit that Ruby uses to represent time zone offsets (see Time#utc_offset).

Source Code

# File active_support/values/time_zone.rb, line 154
def initialize(name, utc_offset)
  @name = name
  @utc_offset = utc_offset
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.