diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-06 23:00:00 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-06 23:00:00 +0000 |
commit | 1c41b6a40e5aeac1093e663897894b8c7836dbbb (patch) | |
tree | f42adc9fc395f12f1f1edce64982e11b7934c173 /lib/Time/Local.pm | |
parent | d66e832e9fab8b58efc050fa203ce5c595e586b3 (diff) | |
download | perl-1c41b6a40e5aeac1093e663897894b8c7836dbbb.tar.gz |
Upgrade to Time::Local 1.06, by Dave Rolsky
p4raw-id: //depot/perl@19702
Diffstat (limited to 'lib/Time/Local.pm')
-rw-r--r-- | lib/Time/Local.pm | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/lib/Time/Local.pm b/lib/Time/Local.pm index 51553b5cd4..a072c74c9a 100644 --- a/lib/Time/Local.pm +++ b/lib/Time/Local.pm @@ -1,15 +1,16 @@ package Time::Local; -use 5.006; + require Exporter; use Carp; use Config; use strict; use integer; -our $VERSION = '1.04'; -our @ISA = qw( Exporter ); -our @EXPORT = qw( timegm timelocal ); -our @EXPORT_OK = qw( timegm_nocheck timelocal_nocheck ); +use vars qw( $VERSION @ISA @EXPORT @EXPORT_OK ); +$VERSION = '1.06'; +@ISA = qw( Exporter ); +@EXPORT = qw( timegm timelocal ); +@EXPORT_OK = qw( timegm_nocheck timelocal_nocheck ); my @MonthDays = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); @@ -169,8 +170,11 @@ Time::Local - efficiently compute time from local and GMT time These routines are the inverse of built-in perl functions localtime() and gmtime(). They accept a date as a six-element array, and return -the corresponding time(2) value in seconds since the Epoch (Midnight, -January 1, 1970). This value can be positive or negative. +the corresponding time(2) value in seconds since the system epoch +(Midnight, January 1, 1970 UTC on Unix, for example). This value can +be positive or negative, though POSIX only requires support for +positive values, so dates before the system's epoch may not work on +all operating systems. It is worth drawing particular attention to the expected ranges for the values provided. The value for the day of the month is the actual day @@ -262,5 +266,24 @@ The whole scheme for interpreting two-digit years can be considered a bug. The proclivity to croak() is probably a bug. +=head1 SUPPORT + +Support for this module is provided via the perl5-porters@perl.org +email list. See http://lists.perl.org/ for more details. + +Please submit bugs using the RT system at bugs.perl.org, the perlbug +script, or as a last resort, to the perl5-porters@perl.org list. + +=head1 AUTHOR + +This module is based on a Perl 4 library, timelocal.pl, that was +included with Perl 4.036, and was most likely written by Tom +Christiansen. + +The current version was written by Graham Barr. + +It is now being maintained separately from the Perl core by Dave +Rolsky, <autarch@urth.org>. + =cut |