Jifty::Filter::DateTime(3pm)

Jifty::Filter::DateTime3pm

Usage

   # 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;

Overview

Jifty::Filter::DateTime promotes DateTime objects to Jifty::DateTime (or your application's DateTime subclass) 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 (or your application's subclass) representing the same time, setting the time zone in the process.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

License

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

From libjifty-perl 1.10518+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.