Jifty::DateTime - a DateTime subclass that knows about Jifty users
Jifty natively stores timestamps in the database in GMT. Dates are stored without timezone. This class loads and parses dates and sets them into the proper timezone.
See "new" in DateTime. After calling that method, set this object's timezone to the current user's time zone, if the current user has a method called time_zone.
time_zone
Return timezone if the current user has it
Take some user defined string like "tomorrow" and turn it into a Jifty::Datetime object. If the string appears to be a _date_, keep it in the floating timezone, otherwise, set it to the current user's timezone.
Jifty::Datetime
Returns the date given by this Jifty::DateTime object. It will display "today" for today, "tomorrow" for tomorrow, or "yesterday" for yesterday. Any other date will be displayed in ymd format.
Jifty::DateTime
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.