Class::DBI::Plugin::DateTime::Pg - Use DateTime With PostgreSQL
package MyCDBI; use base qw(Class::DBI); use Class::DBI::Plugin::DateTime::Pg; __PACKAGE__->set_db(...); __PACKAGE__->table(...); __PACKAGE__->has_timestamp('a_timestamp'); __PACKAGE__->has_date('a_date'); __PACKAGE__->has_time('a_time');
Class::DBI::Plugin::DateTime::Pg provides methods to work with DateTime objects in a Class::DBI + PostgreSQL environment.
All methods take the target column name. You may optionally specify a hashref as the second argument. For this module, you may specify the following:
An arrayref of arguments to be passed to the DateTime::Format::Pg object that is used to parse/format the field.
DateTime DateTime::Format::Pg Class::DBI
Copyright (c) 2005 Daisuke Maki <dmaki@cpan.org>. All rights reserved.
Development funded by Brazil Ltd <http://b.razil.jp>
To install Class::DBI::Plugin::DateTime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::DBI::Plugin::DateTime
CPAN shell
perl -MCPAN -e shell install Class::DBI::Plugin::DateTime
For more information on module installation, please visit the detailed CPAN module installation guide.