Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Time::Piece::DB2
Adds DB2-specific methods to Time::Piece

Time::Piece::DB2 - Adds DB2-specific methods to Time::Piece


NAME

Time::Piece::DB2 - Adds DB2-specific methods to Time::Piece


SYNOPSIS


  use Time::Piece::DB2;

  my $time = localtime;

  print $time->db2_date;

  print $time->db2_time;

  print $time->db2_timestamp;

  my $time = Time::Piece->from_db2_date( $db2_date );

  my $time = Time::Piece->from_db2_time( $db2_time );

  my $time = Time::Piece->from_db2_timestamp( $db2_timestamp );


DESCRIPTION

Using this module instead of, or in addition to Time::Piece adds a few DB2-specific date/time methods to Time::Piece objects.


OBJECT METHODS


CONSTRUCTORS


BUGS

Time::Piece itself only works with times in the Unix epoch, this module has the same limitation. However, DB2 itself handles date and timestamp columns from '1000-01-01'. Feeding in times outside of the Unix epoch to any of the constructors has unpredictable results.


AUTHOR

Author: Mark Ferris <m.ferris@geac.com>


COPYRIGHT

(c) 2004 Mark Ferris

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

the Time::Piece manpage

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy