Skip Menu |

This queue is for tickets about the PHP-DateTime CPAN distribution.

Report information
The Basics
Id: 8729
Status: rejected
Priority: 0/
Queue: PHP-DateTime

People
Owner: Nobody in particular
Requestors: u.hofer [...] tr51.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Strange behavior for minutes
(my $act_min, my $act_hour, my $act_day, my $act_month,my $act_year) = (localtime)[1,2,3,4,5]; $act_year+=1900; $act_month++; #This Works: my $update_stamp = mktime (12, "02", 0, $act_day, $act_month, $act_year); #This Works NOT!!: my $update_stamp = mktime (12, 2, 0, $act_day, $act_month, $act_year); print "Time:".localtime($update_stamp);
On Fri Dec 03 09:57:36 2004, guest wrote: Show quoted text
> (my $act_min, my $act_hour, my $act_day, my $act_month,my $act_year) = > (localtime)[1,2,3,4,5]; $act_year+=1900; $act_month++; > > #This Works: > my $update_stamp = mktime (12, "02", 0, $act_day, $act_month, > $act_year); > > #This Works NOT!!: > my $update_stamp = mktime (12, 2, 0, $act_day, $act_month, $act_year); > > print "Time:".localtime($update_stamp);
I am unable to reproduce the issue you are reporting. Could you please provide more details? In both cases the minutes prints out as "2" from the localtime call.
Not able to reproduce.