1Time::Zone(3)         User Contributed Perl Documentation        Time::Zone(3)
2
3
4

NAME

6       Time::Zone -- miscellaneous timezone manipulations routines
7

SYNOPSIS

9               use Time::Zone;
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

DESCRIPTION

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(1)-like output.  It opionally
22       takes a timezone string, a time, and a is-dst flag.
23
24       "tz_local_offset()" determins 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

AUTHORS

33       Graham Barr <gbarr@pobox.com> David Muir Sharnoff <muir@idiom.com> Paul
34       Foley <paul@ascent.com>
35
36
37
38perl v5.26.3                      2009-12-12                     Time::Zone(3)
Impressum