NAME
Class::DBI::Plugin::DateTime::Pg - Use DateTime With PostgreSQL
SYNOPSIS
package
MyCDBI;
__PACKAGE__->set_db(...);
__PACKAGE__->table(...);
__PACKAGE__->has_timestamp(
'a_timestamp'
);
__PACKAGE__->has_date(
'a_date'
);
__PACKAGE__->has_time(
'a_time'
);
DESCRIPTION
Class::DBI::Plugin::DateTime::Pg provides methods to work with DateTime objects in a Class::DBI + PostgreSQL environment.
METHODS
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:
- constructor_args
-
An arrayref of arguments to be passed to the DateTime::Format::Pg object that is used to parse/format the field.
has_timestamp
has_datetime
has_date
has_time
has_timestamptz
has_timetz
has_interval
has_duration
SEE ALSO
DateTime DateTime::Format::Pg Class::DBI
AUTHOR
Copyright (c) 2005 Daisuke Maki <dmaki@cpan.org>. All rights reserved.
Development funded by Brazil Ltd <http://b.razil.jp>