pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/p5-DateTime-Precise Import p5-DateTime-Precise ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7787e5babed6
branches:  trunk
changeset: 545940:7787e5babed6
user:      he <he%pkgsrc.org@localhost>
date:      Sun Aug 17 14:43:13 2008 +0000

description:
Import p5-DateTime-Precise version 1.05.

The purpose of this library was to replace our dependence on Unix
epoch time, which, being limited to a range of about 1970 to 2030,
is inadequate for our purposes (we have data as old as 1870). This
date library effectively handles dates from A.D. 1000 to infinity,
and would probably work all the way back to 0 (ignoring, of course,
the switch-over to the Gregorian calendar). The useful features of
Unix epoch time (ease of date difference calculation and date
comparison, strict ordering) are preserved, and elements such as
human-legibility are added. The library handles fractional seconds
and some date/time manipulations used for the Global Positioning
Satellite system.

The operators +/-, <=>, cmp, stringify are overloaded. Addition
handles seconds and fractions of seconds, subtraction handles
seconds or date differences, compares work, and stringification
returns the a representation of the date.

The US Geological Survey (USGS) likes midnight to be 24:00:00 of
the previous day, not 00:00:00 of the day people expect. If
$DateTime::Precise::USGSMidnight is set, dprintf will always print
midnight as 24:00:00 and the date returned from dprintf will have
the previous day's date. Regardless, time is always stored internally
as 00:00:00.

diffstat:

 time/p5-DateTime-Precise/DESCR    |  23 +++++++++++++++++++++++
 time/p5-DateTime-Precise/Makefile |  17 +++++++++++++++++
 time/p5-DateTime-Precise/distinfo |   5 +++++
 3 files changed, 45 insertions(+), 0 deletions(-)

diffs (57 lines):

diff -r 81a23eea1f35 -r 7787e5babed6 time/p5-DateTime-Precise/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-DateTime-Precise/DESCR    Sun Aug 17 14:43:13 2008 +0000
@@ -0,0 +1,23 @@
+The purpose of this library was to replace our dependence on Unix
+epoch time, which, being limited to a range of about 1970 to 2030,
+is inadequate for our purposes (we have data as old as 1870). This
+date library effectively handles dates from A.D. 1000 to infinity,
+and would probably work all the way back to 0 (ignoring, of course,
+the switch-over to the Gregorian calendar). The useful features of
+Unix epoch time (ease of date difference calculation and date
+comparison, strict ordering) are preserved, and elements such as
+human-legibility are added. The library handles fractional seconds
+and some date/time manipulations used for the Global Positioning
+Satellite system.
+
+The operators +/-, <=>, cmp, stringify are overloaded. Addition
+handles seconds and fractions of seconds, subtraction handles
+seconds or date differences, compares work, and stringification
+returns the a representation of the date.
+
+The US Geological Survey (USGS) likes midnight to be 24:00:00 of
+the previous day, not 00:00:00 of the day people expect. If
+$DateTime::Precise::USGSMidnight is set, dprintf will always print
+midnight as 24:00:00 and the date returned from dprintf will have
+the previous day's date. Regardless, time is always stored internally
+as 00:00:00.
diff -r 81a23eea1f35 -r 7787e5babed6 time/p5-DateTime-Precise/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-DateTime-Precise/Makefile Sun Aug 17 14:43:13 2008 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/08/17 14:43:13 he Exp $
+
+DISTNAME=      DateTime-Precise-1.05
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    time perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=DateTime/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/DateTime-Precise/
+COMMENT=       Perl module for common time and date operations with GPS ops
+
+PERL5_PACKLIST=        auto/DateTime/Precise/.packlist
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 81a23eea1f35 -r 7787e5babed6 time/p5-DateTime-Precise/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/p5-DateTime-Precise/distinfo Sun Aug 17 14:43:13 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/08/17 14:43:13 he Exp $
+
+SHA1 (DateTime-Precise-1.05.tar.gz) = bdb50b4c74d4954c2a584100c7ae6e1fe38c8745
+RMD160 (DateTime-Precise-1.05.tar.gz) = dd8f2cf57d541bd27ef17a02754f47eba98a0f62
+Size (DateTime-Precise-1.05.tar.gz) = 35599 bytes



Home | Main Index | Thread Index | Old Index