Module: TimeZone::Local

Extended by:
Unix
Includes:
Windows
Defined in:
lib/timezone_local.rb,
lib/unix.rb

Defined Under Namespace

Modules: Unix

Class Method Summary collapse

Methods included from Unix

METHODS, expand_symlink, find_matching_zoneinfo_file, from_env, from_etc_TIMEZONE, from_etc_default_init, from_etc_localtime, from_etc_sysconfig_clock, from_etc_timezone, is_valid_name?, load_tz

Class Method Details

.getObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/timezone_local.rb', line 18

def self.get

    return @tz if not @tz.nil?

    self.METHODS.each do |m|
        begin
            @tz = self.send(m)
            return @tz if not @tz.nil?
        rescue Exception => ex
        end
    end

    nil
end