in reply to Re^3: String (date) to time (integer)
in thread String (date) to time (integer)
Actually, the relevant part is
for my $date ("06/06/2009",'01/30/09') { ...
which is a loop that loops over the two elements 06/06/2009 and 01/30/09. I used a loop to demonstrate the original case and a problematic case, because timelocal(...,30,1,9) would try to find the epoch time of the 30th of February, which doesn't exist in our calendar.
|
|---|