The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Jifty::DBI::Filter::DateTime - DateTime object wrapper around date columns

DESCRIPTION

This filter allow you to work with DateTime objects instead of plain text dates. If the column type is "date", then the hour, minute, and second information is discarded when encoding.

encode

If value is DateTime object then converts it into ISO format YYYY-MM-DD hh:mm:ss. Does nothing if value is not defined or string.

decode

If value is defined then converts it into DateTime object otherwise do nothing.

SEE ALSO

Jifty::DBI::Filter, DateTime