Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.615.505 Times

DateTime::Format::Pg 0.15

  Date Added: November 26, 2010  |  Visits: 749

DateTime::Format::Pg

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Clone Dates Datetime Datetimeformatpg Default Format Libraries Module Parse Perl Module Postgresql Programming Timestamp
Users rating: 0/10

License: Freeware Size: 19.46 KB
USER REVIEWS
More Reviews or Write Review


DATETIME::FORMAT::PG RELATED
Libraries  -  DateTime::Format::Builder 0.7807
DateTime::Format::Builder is a Perl module to create datetime parser classes and objects. SYNOPSIS package DateTime::Format::Brief; our $VERSION = 0.07; use DateTime::Format::Builder ( parsers => { parse_datetime => [ { regex =>...
48.13 KB  
Libraries  -  DateTime::Format::Roman 0.03
DateTime::Format::Roman is a Perl module with roman day numbering for DateTime objects. SYNOPSIS use DateTime::Format::Roman; my $formatter = DateTime::Format::Roman->new( pattern => %d %f %b %y ); my $dt = DateTime->new( year => 2003,...
11.26 KB  
Libraries  -  DateTime::Format::Excel 0.2901
DateTime::Format::Excel is a Perl module that can convert between DateTime and Excel dates. SYNOPSIS use DateTime::Format::Excel; # From Excel via class method: my $datetime = DateTime::Format::Excel->parse_datetime( 37680 ); print...
15.36 KB  
Libraries  -  DateTime::Format::Epoch 0.10
DateTime::Format::Epoch is a Perl module that can convert DateTimes to/from epoch seconds. SYNOPSIS use DateTime::Format::Epoch; my $dt = DateTime->new( year => 1970, month => 1, day => 1 ); my $formatter = DateTime::Format::Epoch->new(...
17.41 KB  
Libraries  -  DateTime::Format::Strptime 1.0700
DateTime::Format::Strptime is a Perl module to parse and format strp and strf time patterns. SYNOPSIS use DateTime::Format::Strptime; my $Strp = new DateTime::Format::Strptime( pattern => %T, locale => en_AU, time_zone =>...
25.6 KB  
Libraries  -  DateTime::Format::Epoch::JD 0.10
DateTime::Format::Epoch::JD is Perl module Convert DateTimes to/from Julian Days. SYNOPSIS use DateTime::Format::Epoch::JD; my $dt = DateTime::Format::Epoch::JD->parse_datetime( 2453244.5 ); # 2004-08-27T00:00:00...
17.41 KB  
Libraries  -  AnyData::Format::XML 0.10
AnyData::Format::XML is a Perl module for tiedhash and DBI access to XML. SYNOPSIS # access XML data via a multi-dimensional tied hash # see AnyData.pod for full details # use AnyData; my $table = adTie( XML, $file, $mode, $flags ); OR...
44.03 KB  
Libraries  -  OODoc::Format::Pod 0.98
OODoc::Format::Pod is a Perl module to produce POD pages from the doc tree. INHERITANCE OODoc::Format::Pod is an OODoc::Format is an OODoc::Object OODoc::Format::Pod is extended by OODoc::Format::Pod2 SYNOPSIS my $doc =...
102.4 KB  
Libraries  -  File::Format::RIFF 1.0.1
File::Format::RIFF is a Perl module to Resource Interchange File Format/RIFF files. SYNOPSIS use File::Format::RIFF; open( IN, file ) or die "Could not open file: $!"; my ( $riff1 ) = File::Format::RIFF->read( *IN ); close( IN );...
9.22 KB  
Libraries  -  File::Type::Builder 0.22
File::Type::Builder is Perl module to parse mime-magic and generate code. SYNOPSIS my $build = File::Type::Builder->new(); while ( ) { chomp; my $parsed = $build->parse_magic($_); my $code = $build->string_start($parsed); (or...
153.6 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB