GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JIFTY::FILTER::DATETIME (3)

.ds Aq ’

NAME

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

CONTENTS

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 (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.

SEE ALSO

Jifty::DBI::Filter::Date, Jifty::DBI::Filter::DateTime, Jifty::DateTime

LICENSE

Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::FILTER::DATETIME (3) 2010-12-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.