| 1 |
# Copyright (c) 2008-2026 Sullivan Beck. All rights reserved. |
| 2 |
# This program is free software; you can redistribute it and/or modify it |
| 3 |
# under the same terms as Perl itself. |
| 4 |
|
| 5 |
=pod |
| 6 |
|
| 7 |
=head1 NAME |
| 8 |
|
| 9 |
Date::Manip::TZdata -- Internal module for working with the tzdata files |
| 10 |
|
| 11 |
=head1 SYNOPSIS |
| 12 |
|
| 13 |
use Date::Manip::TZdata; |
| 14 |
|
| 15 |
$tzd = new Date::Manip::TZdata($dir); |
| 16 |
|
| 17 |
=head1 DESCRIPTION |
| 18 |
|
| 19 |
This module is not intended for public use. It is used internally by |
| 20 |
the scripts used to analyze the time zone database and generate the |
| 21 |
modules for each time zone. The module is included in the distribution |
| 22 |
solely for the sake of completeness. Currently, no support is offered |
| 23 |
for this module, and it can (and may) change without notice. |
| 24 |
|
| 25 |
This module consists of routines for working with the tzdata files. |
| 26 |
These files are updated several times a year and are the basis for |
| 27 |
time zone descriptions for most computer systems. |
| 28 |
|
| 29 |
=head1 ROUTINES |
| 30 |
|
| 31 |
=over 4 |
| 32 |
|
| 33 |
=item B<new> |
| 34 |
|
| 35 |
use Date::Manip::TZdata; |
| 36 |
|
| 37 |
$tzd = new Date::Manip::TZdata($dir); |
| 38 |
|
| 39 |
This finds and reads in all the tzdata. If C<$dir> is passed in, it |
| 40 |
is the directory where a tzdata directory is located. It defaults to |
| 41 |
the current directory. |
| 42 |
|
| 43 |
=back |
| 44 |
|
| 45 |
=head1 KNOWN LIMITATIONS |
| 46 |
|
| 47 |
Some assumptions and limitations are assumed in the logic of this |
| 48 |
module. |
| 49 |
|
| 50 |
When a time change occurs, the time may change backwards or forwards. |
| 51 |
Time changes rules are listed on a per-year basis. It is assumed that |
| 52 |
time changes will not occur so close to the end or start of the year |
| 53 |
as to cross the year boundary (in other words, the year will not |
| 54 |
change as a result of the time change). This is not accounted for, |
| 55 |
and it is hoped that this situation will never occur. |
| 56 |
|
| 57 |
Also, because this module is strictly limited to 4 digit positive |
| 58 |
years (regardless of whether it is wall clock or universal time), and |
| 59 |
because various parts of the module switch back and forth, valid times |
| 60 |
for this module are from Jan 2, 0001 to Dec 30, 9999. This ensures |
| 61 |
that conversions from wall clock to universal or vice versa will never |
| 62 |
make dates occur in the year 0000 or 10000. |
| 63 |
|
| 64 |
=head1 KNOWN BUGS |
| 65 |
|
| 66 |
None known. |
| 67 |
|
| 68 |
=head1 BUGS AND QUESTIONS |
| 69 |
|
| 70 |
Please refer to the L<Date::Manip> man page for information on submitting |
| 71 |
bug reports or questions to the author. |
| 72 |
|
| 73 |
=head1 AUTHOR |
| 74 |
|
| 75 |
Sullivan Beck ([email protected]) |
| 76 |
|
| 77 |
=cut |