1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/perl use strict; use lib '../libs'; use DBI; use database; use DateTime; use DateTime::Format::SQLite; my $dbh=getDatabase('test'); my $sth=$dbh->prepare('Select utcdate from process'); $sth->execute(); my ($t)=$sth->fetchrow_array(); print "$t\n"; my $dt=Datetime::Format::SQLite->parse_datetime($t); print "$dt\n";
Quote2014-06-01 00:00:00
Can't locate object method "parse_datetime" via package "Datetime::Format::SQLite" (perhaps you forgot to load "Datetime::Format::SQLite"?) at calc_missing_pqi.pl line 19.