DateTime::Format::DB2 man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

DateTime::Format::DB2(User Contributed Perl DocumentatDateTime::Format::DB2(3)

NAME
       DateTime::Format::DB2 - Parse and format DB2 dates and times

SYNOPSIS
	 use DateTime::Format::DB2;

	 my $dt = DateTime::Format::DB2->parse_timestamp( '2003-01-16-23.12.01.300000' );

	 # 2003-01-16-23.12.01.300000
	 DateTime::Format::DB2->format_timestamp($dt);

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

METHODS
       This class offers the following methods.	 All of the parsing methods
       set the returned DateTime object's time zone to the floating time zone,
       because DB2 does not provide time zone information.

       ·   parse_time($string)

       ·   parse_date($string)

       ·   parse_timestamp($string)

	   Given a value of the appropriate type, this method will return a
	   new "DateTime" object.  The time zone for this object will always
	   be the floating time zone, because by DB2 stores the local
	   datetime, not UTC.

	   If given an improperly formatted string, this method may die.

       ·   format_date($datetime)

       ·   format_time($datetime)

       ·   format_timestamp($datetime)

	   Given a "DateTime" object, this methods returns an appropriately
	   formatted string.

SUPPORT
       Support for this module is provided via the datetime@perl.org email
       list.  See http://lists.perl.org/ for more details.

AUTHOR
       Jess Robinson <castaway@desert-island.demon.co.uk>

       This module was shamelessly cloned from Dave Rolsky's
       DateTime::Format::MySQL module.

COPYRIGHT
       Copyright (c) 2005 Jess Robinson.  All rights reserved.	This program
       is free software; you can redistribute it and/or modify it under the
       same terms as Perl itself.

SEE ALSO
       datetime@perl.org mailing list

       http://datetime.perl.org/

perl v5.14.1			  2007-01-20	      DateTime::Format::DB2(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net