-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in Localtime #812
Comments
From rbroeck@new-edc.nlI found a problem using the function localtime. Executing the below script ($sec,$min,$hour,$day,$mon,$year,$wday,$yday,$isdst) = localtime(time) ; output: 99/10/3 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): e-mail: mailto:rbroeck@new-edc.nl This email is confidential and intended solely for the use of the individual |
From [Unknown Contact. See original ticket]Rob van den Broeck <rbroeck@new-edc.nl> 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 -- |
Migrated from rt.perl.org#1740 (status was 'resolved')
Searchable as RT1740$
The text was updated successfully, but these errors were encountered: