Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I found a problem using the function localtime. Executing the below script
($sec,$min,$hour,$day,$mon,$year,$wday,$yday,$isdst) = localtime(time) ;
using the functions date and time (MSDOS box under Windows NT 4)
Date: wo 03-11-1999
Is this a bug in Perl ?
perl -V gives you:
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
Characteristics of this binary (from libperl):
This email is confidential and intended solely for the use of the individual
From [Unknown Contact. See original ticket]
Rob van den Broeck <firstname.lastname@example.org> writes:
=item localtime EXPR
Converts a time as returned by the time function to a 9-element array
# 0 1 2 3 4 5 6 7 8
All array elements are numeric, and come straight out of a struct tm. In
If EXPR is omitted, uses the current time (C<localtime(time)>).
In scalar context, returns the ctime(3) value:
$now_string = localtime; # e.g., "Thu Oct 13 04:54:34 1994"
This scalar value is B<not> locale dependent, see L<perllocale>, but
use POSIX qw(strftime);
Note that the C<%a> and C<%b>, the short forms of the day of the week and