![]() |
![]()
| ![]() |
![]()
Catalyst::Plugin::DateTime - DateTime plugin for Catalyst. SYNOPSIS# In your application class use Catalyst qw/DateTime/; # Use DateTime objects within your Catalyst app: my $dt = $c->datetime(); # will return a DateTime object with local date and time my $dt = $c->datetime(year => '2005', month => '01'); $c->datetime->mdy(); # returns current date in mdy format (i.e. 01/01/2006) $c->dt(time_zone => 'Asia/Taipei'); # returns current date & time for argued time zone METHODS
DESCRIPTIONThis module's intention is to make the wonders of DateTime easily accesible within a Catalyst application via the Catalyst::Plugin interface. It adds the methods "datetime" and "dt" to the "Catalyst" namespace. AUTHORJames Kiser james.kiser@gmail.com SEE ALSOCatalyst, DateTime COPYRIGHT & LICENSECopyright (c) 2006 the aforementioned author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|