Subject: | isoTime() on "12:00" |
Date: | Thu, 08 Oct 2009 10:09:03 +1100 |
To: | bug-Finance-Quote [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With recent debian i386 perl 5.10.1 the program below prints
11:00
00:00
13:00
where I thought it would be
11:00
12:00
13:00
Is an AM/PM for isoTime() mandatory? I see the regexp has it optional,
if that's intentional then I think "12:00" should be interpreted as
midday not midnight.
use strict;
use warnings;
use Finance::Quote;
print Finance::Quote->isoTime ('11:00'),"\n";
print Finance::Quote->isoTime ('12:00'),"\n";
print Finance::Quote->isoTime ('13:00'),"\n";