Flowdock
method

force_zone!

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: Time

Not found

The exact documentation you were looking for could not be found. Here is the best guess.

force_zone!(t, zone, offset=nil) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/time.rb, line 179
    def force_zone!(t, zone, offset=nil)
      if zone_utc?(zone)
        t.utc
      elsif offset ||= zone_offset(zone)
        # Prefer the local timezone over the fixed offset timezone because
        # the former is a real timezone and latter is an artificial timezone.
        t.localtime
        if t.utc_offset != offset
          # Use the fixed offset timezone only if the local timezone cannot
          # represent the given offset.
          t.localtime(offset)
        end
      else
        t.localtime
      end
    end
Register or log in to add new notes.