X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTime%2FLocal.pm;h=c38d07ca60f25009329882cbcabc98534d59d61c;hb=531e2ba17c3281a8e6bbb5e7c03fd7923b41370f;hp=51553b5cd403013aaa37cd50cd89121749d028e9;hpb=13ef5feb3a8e2368992adc7df8455949512b60b3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Time/Local.pm b/lib/Time/Local.pm index 51553b5..c38d07c 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.07'; +@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, . + =cut