Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Jifty::Filter::DateTime -- A Jifty::DBI filter to work with Jifty::DateTime objects

Jifty::Filter::DateTime -- A Jifty::DBI filter to work with Jifty::DateTime objects


NAME

Jifty::Filter::DateTime -- A Jifty::DBI filter to work with Jifty::DateTime objects


SYNOPSIS


   # use it with Jifty::DBI::Filter::Date or J::D::F::DateTime

    column created =>

      type is 'timestamp',

      filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),

      label is 'Created',

      is immutable;


DESCRIPTION

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.


    column created =>

      type is 'timestamp',

      filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),

      label is 'Created',

      is immutable;

decode

If the value is a DateTime, replace it with a Jifty::DateTime representing the same time, setting the time zone in the process.


SEE ALSO

the Jifty::DBI::Filter::Date manpage, the Jifty::DBI::Filter::DateTime manpage, the Jifty::DateTime manpage


LICENSE

Jifty is Copyright 2005-2007 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy