static private Method

Time.zone_utc?(zone)

There's no documentation for this item.

Source Code

# File time.rb, line 86
def zone_utc?(zone)
  # * +0000 means localtime. [RFC 2822]
  # * GMT is a localtime abbreviation in Europe/London, etc.
  if /\A(?:-00:00|-0000|-00|UTC|Z|UT)\z/i =~ zone
    true
  else
    false
  end
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.