1Time::Timezone(3) User Contributed Perl Documentation Time::Timezone(3)
2
3
4
6 Time::Timezone -- miscellaneous timezone manipulations routines
7
9 use Time::Timezone;
10 print tz2zone();
11 print tz2zone($ENV{'TZ'});
12 print tz2zone($ENV{'TZ'}, time());
13 print tz2zone($ENV{'TZ'}, undef, $isdst);
14 $offset = tz_local_offset();
15 $offset = tz_offset($TZ);
16
18 This is a collection of miscellaneous timezone manipulation routines.
19
20 "tz2zone()" parses the TZ environment variable and returns a timezone
21 string suitable for inclusion in date-like output. It optionally takes
22 a timezone string, a time, and a is-dst flag.
23
24 "tz_local_offset()" determines the offset from GMT time in seconds. It
25 only does the calculation once.
26
27 "tz_offset()" determines the offset from GMT in seconds of a specified
28 timezone.
29
30 "tz_name()" determines the name of the timezone based on its offset
31
33 Graham Barr <bodg@tiuk.ti.com> David Muir Sharnoff <muir@idiom.org>
34 Paul Foley <paul@ascent.com>
35
37 David Muir Sharnoff disclaims any copyright and puts his contribution
38 to this module in the public domain.
39
40
41
42perl v5.32.1 2021-01-27 Time::Timezone(3)