jifty::dbi::filter::datetime(3pm) debian man page | unix.com

Man Page: jifty::dbi::filter::datetime

Operating Environment: debian

Section: 3pm

Jifty::DBI::Filter::DateTime(3pm)			User Contributed Perl Documentation			 Jifty::DBI::Filter::DateTime(3pm)

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. Both input and output will always be coerced into UTC (or, in the case of Dates, the Floating timezone) for consistency. formatter This is an instance of the DateTime::Format object used for inflating the string in the database to a DateTime object. By default it is a DateTime::Format::Strptime object that uses the "_strptime" method as its pattern. You can use the _formatter classdata storage as a cache so you don't need to re-instantiate your format object every "decode". 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. Sets the value to undef if the value is a string and doesn't match an ISO date (at least). decode If value is defined then converts it into DateTime object otherwise do nothing.
SEE ALSO
Jifty::DBI::Filter, DateTime perl v5.14.2 2010-09-21 Jifty::DBI::Filter::DateTime(3pm)
Related Man Pages
datetime::format::epoch::mjd(3pm) - debian
datetime::format::epoch::ratadie(3pm) - debian
html::formfu::constraint::datetime(3pm) - debian
jifty::dbi::filter(3pm) - debian
jifty::datetime(3pm) - debian
Similar Topics in the Unix Linux Community
How can I do this in VI editor?
Introduction
Detecting unused variables...
New UNIX and Linux History Sections
My first PERL incarnation... Audio Oscillograph