This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: Adjust where .pl suffix gets added to output filenames
[perl5.git] / lib / timelocal.pl
1 warn "Legacy library @{[(caller(0))[6]]} will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at @{[(caller)[1]]}, line @{[(caller)[2]]}.\n";
2
3 ;# timelocal.pl
4 ;#
5 ;# Usage:
6 ;#      $time = timelocal($sec,$min,$hours,$mday,$mon,$year);
7 ;#      $time = timegm($sec,$min,$hours,$mday,$mon,$year);
8
9 ;# This file has been superseded by the Time::Local library module.
10 ;# It is implemented as a call to that module for backwards compatibility
11 ;# with code written for perl4; new code should use Time::Local directly.
12 ;# This legacy library is deprecated and will be removed in a future
13 ;# release of perl.
14
15 ;# The current implementation shares with the original the questionable
16 ;# behavior of defining the timelocal() and timegm() functions in the
17 ;# namespace of whatever package was current when the first instance of
18 ;# C<require 'timelocal.pl';> was executed in a program.
19
20 use Time::Local;
21
22 *timelocal::cheat = \&Time::Local::cheat;
23