Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 29635
Status: resolved
Priority: 0/
Queue: DateTime-Format-Pg

People
Owner: Nobody in particular
Requestors: bryce1 [...] obviously.com
Cc:
AdminCc:

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



Subject: Won't parse intervals, e.g. "16:05:00" or even better "26:05:00"
Download (untitled) / with headers
text/plain 341b
If you try to feed this module anything other than a full postgres date, it seems to choke: Use of uninitialized value in numeric lt (<) at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Pg.pm line 323. Can't call method "is_infinite" without a package or object reference at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Pg.pm line 753.
Download (untitled) / with headers
text/plain 444b
Show quoted text
> If you try to feed this module anything other than a full postgres date, > it seems to choke:
What method are you using? If you know before hand that the value is a "time" value, there's parse_time(). This test works out fine for me. use strict; use Test::More (tests => 4); BEGIN { use_ok("DateTime::Format::Pg"); } my $dt = DateTime::Format::Pg->parse_time('16:05:00'); is($dt->hour, 16); is($dt->minute, 5); is($dt->second, 0);


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.