static public Method

TimeZone.new(name)

Return a TimeZone instance with the given name, or nil if no such TimeZone instance exists. (This exists to support the use of this class with the #composed_of macro.)

Source Code

# File active_support/values/time_zone.rb, line 244
def new(name)
  self[name]
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.