Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 50311
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



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";