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::DBI::FILTER::DATE (3)

.ds Aq ’

NAME

Jifty::DBI::Filter::Date - DateTime object wrapper around date columns

CONTENTS

DESCRIPTION

This filter allow you to work with DateTime objects that represent Dates, store everything in the database in GMT and not hurt yourself badly when you pull them out and put them in repeatedly.

    encode

If value is a DateTime object then move it into a floating timezone and expand it into ISO 8601 format YYYY-MM-DD. By storing it in the database as a floating timezone, it doesn’t matter if the user’s desired timezone changes between lookups

Does nothing if value is not defined or is a string.

    decode

If we’re loading something from a column that doesn’t specify times, then it’s loaded into a floating timezone.

If value is defined then converts it into DateTime object otherwise do nothing.

SEE ALSO

Jifty::DBI::Filter, DateTime
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::DBI::FILTER::DATE (3) 2014-05-29

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