DateTime::Format::Pg 0.15

DateTime::Format::Pg 0.15

Sponsored Links

DateTime::Format::Pg 0.15 Ranking & Summary

Ranking Click at the star to rankRanking level:
User Review: 0 (0 times) Download now
File size: 0.019 MB Platform: Any Platform License: Perl Artistic License Price: Downloads: 6332 Date added: 2007-05-17 Publisher: Claus A. Färber Publisher URL: http://search.cpan.org/~d

DateTime::Format::Pg 0.15 description

DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times.

SYNOPSIS

use DateTime::Format::Pg;

my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 );

# 2003-01-16T23:12:01+0200
DateTime::Format::Pg->format_datetime($dt);

This module understands the formats used by PostgreSQL for its DATE, TIME, TIMESTAMP, and INTERVAL data types. It can be used to parse these formats in order to create DateTime or DateTime::Duration objects, and it can take a DateTime or DateTime::Duration object and produce a string representing it in a format accepted by PostgreSQL.

CONSTRUCTORS

The following methods can be used to create DateTime::Format::Pg objects.
new( name => value, ... )

Creates a new DateTime::Format::Pg instance. This is generally not required for simple operations. If you wish to use a different parsing style from the default then it is more comfortable to create an object.

my $parser = DateTime::Format::Pg->new()
my $copy = $parser->new( european => 1 );

This method accepts the following options:

european

If european is set to non-zero, dates are assumed to be in european dd/mm/yyyy format. The default is to assume US mm/dd/yyyy format (because this is the default for PostgreSQL).

This option only has an effect if PostgreSQL is set to output dates in the PostgreSQL (DATE only) and SQL (DATE and TIMESTAMP) styles.
Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.

server_tz

This option can be set to a DateTime::TimeZone object or a string that contains a time zone name.

This value must be set to the same value as the PostgreSQL servers time zone in order to parse TIMESTAMP WITH TIMEZONE values in the PostgreSQL, SQL, and German formats correctly.

Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.

clone()

This method is provided for those who prefer to explicitly clone via a method called clone().

my $clone = $original->clone();

If called as a class method it will die.

Download now

DateTime::Format::Pg 0.15 Screenshot

Sponsored Links
Download DateTime::Format::Pg 0.15

DateTime::Format::Pg 0.15 Keywords

Bookmark DateTime::Format::Pg 0.15

Hyperlink code:
Hyperlink and Intro code:

DateTime::Format::Pg 0.15 Copyright

WareSeeker periodically updates pricing and software information of DateTime::Format::Pg 0.15 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DateTime::Format::Pg 0.15 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

DateTime::Format::Pg 0.15 Related Software


DateTime::Format::Roman is a Perl module with roman day numbering for DateTime objects.

DateTime::Format::Builder is a Perl module to create datetime parser classes and objects.

DateTime::Format::Strptime is a Perl module to parse and format strp and strf time patterns.

DateTime::Format::Epoch::RJD is a Perl module that can convert DateTimes to/from Reduced Julian Days.

DateTime::Format::Epoch::TJD is a Perl module that can convert DateTimes to/from Truncated Julian Days.

DateTime::Format::Epoch is a Perl module that can convert DateTimes to/from epoch seconds.

DateTime::Format::Epoch::RataDie is a Perl module that can convert DateTimes to/from Rata Die.

DateTime::Format::Epoch::JD is Perl module Convert DateTimes to/from Julian Days.

DateTime::Format::Excel is a Perl module that can convert between DateTime and Excel dates.

DateTime::Format::Epoch::MJD is a Perl module that can convert DateTimes to/from Modified Julian Days.
DateTime::Format::Pg 0.15 Review:
Author name* :  
Author Email* :  
Comment* :  
Security code* :  
     
   
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD