This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make pp_reverse fetch the lexical $_ from the correct pad
[perl5.git] / lib / timelocal.pl
CommitLineData
fe14fcc3
LW
1;# timelocal.pl
2;#
3;# Usage:
7c0587c8 4;# $time = timelocal($sec,$min,$hours,$mday,$mon,$year);
fe14fcc3
LW
5;# $time = timegm($sec,$min,$hours,$mday,$mon,$year);
6
55497cff 7;# This file has been superseded by the Time::Local library module.
8;# It is implemented as a call to that module for backwards compatibility
9;# with code written for perl4; new code should use Time::Local directly.
406eeb02
S
10;# This legacy library is deprecated and will be removed in a future
11;# release of perl.
fe14fcc3 12
55497cff 13;# The current implementation shares with the original the questionable
14;# behavior of defining the timelocal() and timegm() functions in the
15;# namespace of whatever package was current when the first instance of
16;# C<require 'timelocal.pl';> was executed in a program.
fe14fcc3 17
55497cff 18use Time::Local;
a0d0e21e 19
55497cff 20*timelocal::cheat = \&Time::Local::cheat;
406eeb02 21