Subject: | UnixDate Error from 2010090502:00:00 to 2010090502:59:59 |
Date: | Tue, 05 Oct 2010 22:36:51 +0200 |
To: | bug-Date-Manip [...] rt.cpan.org |
From: | Amish Chana <amish [...] 3g.co.za> |
Dear Sullivan,
If I use the UnixDate function as follows: $result =
UnixDate($datetime,"%w")
If $datetime is equal to a value from 2010090502:00:00 to
2010090502:59:59 then I get the following error:
----------------
WARNING: [printf] Object must contain a valid date
Use of uninitialized value $ret[0] in join or string at
/usr/lib/perl5/site_perl/5.10.1/Date/Manip.pm line 197, <STDIN> line 1.
----------------
The function works fine for other values of $datetime variable but
returns an error for the above range.
The error is present in version 6.11 and 6.12 with perl version 5.10.1.
Best Regards,
Amish