[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#157133: ITP: libtime-piece-perl -- Perl module for object oriented time objects



Package: wnpp
Version: N/A; reported 2002-08-17
Severity: wishlist

* Package name    : libtime-piece-perl
  Version         : 1.07
  Upstream Author : Matt Sergeant <matt@sergeant.org>
                    Jarkko Hietaniemi <jhi@iki.fi>
* URL             : http://www.cpan.org/
* License         : Artistic
  Description     : Perl module for object oriented time objects

This module replaces the standard localtime and gmtime functions with
implementations that return objects.  It does so in a backwards
compatible manner, so that using localtime/gmtime in the way
documented in perlfunc will still return what you expect.

Time::Piece does the right thing with the return value from
localtime:

  - in list context it returns a list of values

  - in scalar context it returns a Time::Piece object

  - when stringified (or printed), Time::Piece objects look like the
    output from scalar(localtime) 

Beyond that, Time::Piece objects allow you to get any part of the
date/time via method calls, plus they allow you to get at the string
form of the week day and month.  It has methods for julian days, and
some simple date arithmetic options.

Time::Piece also gives you easy access to your C library's strftime
and strptime functions, so you can parse and output locale sensitive
dates to your heart's content :-)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rohan 2.4.18 #1 Sun Jul 14 11:28:54 CDT 2002 i686
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO-8859-1 (ignored: LC_ALL set)

-- no debconf information




Reply to: