This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Perl_sv_gets(), shortbuffered is always 0 when rslen is 0.
[perl5.git] / lib / timelocal.pl
CommitLineData
0111154e
Z
1warn "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
fe14fcc3
LW
3;# timelocal.pl
4;#
5;# Usage:
7c0587c8 6;# $time = timelocal($sec,$min,$hours,$mday,$mon,$year);
fe14fcc3
LW
7;# $time = timegm($sec,$min,$hours,$mday,$mon,$year);
8
55497cff 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.
406eeb02
S
12;# This legacy library is deprecated and will be removed in a future
13;# release of perl.
fe14fcc3 14
55497cff 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.
fe14fcc3 19
55497cff 20use Time::Local;
a0d0e21e 21
55497cff 22*timelocal::cheat = \&Time::Local::cheat;
406eeb02 23