in reply to Mocking time with SQLite
I tried DateTime::Format::SQLite. It'll parse a string into a format that SQLite understands. Note that SQLite uses UTC, so Test::MockTime may not be compatible with SQLite. Following the example from the SYNOPSIS:
#!/usr/bin/perl use strict; use warnings; use DateTime::Format::SQLite; my $dt = DateTime::Format::SQLite->parse_datetime( '2010-12-26 04:41:2 +0' ); print DateTime::Format::SQLite->format_datetime($dt), "\n";
In Section
Seekers of Perl Wisdom