Eve::PgSqlType::Interval - a PostgreSQL interval type.
my $interval = Eve::PgSqlType::Interval->new(); $interval->serialize(value => $duration);
Eve::PgSqlType::Interval is a PostgreSQL interval type adapter class.
The PG_TIMESTAMP type.
Wraps an expression with CAST statement.
expression
CAST (expression AS interval)
Formats a DateTime::Duration object into the appropriate string interval representation with the DateTime::Format::Pg module.
value
The string like '1 day 1 hour 1 minute 1 second'.
Parses an interval string representation into the appropriate DateTime::Duration object with the DateTime::Format::Pg module.
A DateTime::Duration object.
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.