-
-
20 Feb 2009 09:57:45 UTC
- Distribution: Class-DBI-Plugin-DateTime
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (740 / 50 / 0)
- Kwalitee
Bus factor: 1- 91.67% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (16.36KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::DBI
- DateTime
- Module::Pluggable
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Class::DBI::Plugin::DateTime::Pg - Use DateTime With PostgreSQL
SYNOPSIS
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');
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>
Module Install Instructions
To install Class::DBI::Plugin::DateTime, copy and paste the appropriate command in to your terminal.
cpanm Class::DBI::Plugin::DateTime
perl -MCPAN -e shell install Class::DBI::Plugin::DateTime
For more information on module installation, please visit the detailed CPAN module installation guide.