Jifty::Filter::DateTime -- A Jifty::DBI filter to work with Jifty::DateTime objects
Jifty::Filter::DateTime promotes DateTime objects to Jifty::DateTime objects on load. This has the side effect of setting their time zone based on the record's current user's preferred time zone, when available.
This is intended to be combined with Jifty::DBI::Filter::Date or Jifty::DBI::Filter::DateTime, e.g.
Jifty::DBI::Filter::Date
Jifty::DBI::Filter::DateTime
column created => type is 'timestamp', filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime), label is 'Created', is immutable;
If the value is a DateTime, replace it with a Jifty::DateTime representing the same time, setting the time zone in the process.
Jifty::DBI::Filter::Date, Jifty::DBI::Filter::DateTime, Jifty::DateTime
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.