diff options
author | hiramatsu <hiramatsu@pkgsrc.org> | 2006-04-25 14:03:58 +0000 |
---|---|---|
committer | hiramatsu <hiramatsu@pkgsrc.org> | 2006-04-25 14:03:58 +0000 |
commit | 08e73f826dd168f44c46b01059ce88109b073882 (patch) | |
tree | 80985e74ab6f18522782e089eda8a445af117ec2 /time/p5-DateTime | |
parent | 95c0b6c856d0996b9825417e8801ab10d7572856 (diff) | |
download | pkgsrc-08e73f826dd168f44c46b01059ce88109b073882.tar.gz |
Update p5-DateTime to 0.30.
Changes from 0.27:
0.30 2005-12-22
[ ENHANCEMENTS ]
- Expanded and rewrote the docs on date math to try to explain exactly
how DateTime.pm works, and in particular cover the problems DST
introduces to various types of date math. The docs now also include
some specific recommendations on getting sane results from datetime
math.
- Added calendar_duration() and clock_duration() methods to
DateTime::Duration
- Explicitly override the stringification method for
DateTime::Infinite objects. They now stringify as whatever the IEEE
infinity and negative infinity numbers stringify to on your platform.
On Linux this is "inf" and "-inf". CPAN RT #16632.
[ BUG FIXES ]
- delta_md() and delta_days() did not always return correct values
when crossing a DST change.
- The pure Perl version of the code had a dependency ordering problem
where DateTime::LeapSecond depended on other pure Perl code that
wasn't yet available. I'm not sure how this ever worked.
- Remove mentions of leap second on 1971-12-31 from the docs, because
there was no leap second that day. Reported by Mike Schilli.
- If you added a second to a datetime that was on a leap second (like
2005-12-31T23:59:60) it got "stuck" and kept returning the same
datetime. Reported by Mike Schilli.
- Changes to the tests in 20infinite.t may fix failures seen on some
platforms and with new versions of Test::More (0.62 was known to cause
failures)
[ *** BACKWARDS INCOMPATIBILITIES *** ]
- The subtract_datetime() method switched back to using the local
portion of the date _and_ time, but it now accounts for days with DST
changes specially. This produces results that fix the bugs that were
fixed by previous subtraction changes in 0.28 and 0.29, but without
introducing even more bugs. The overall result should be sane, but
please see the docs for details.
0.2901 2005-07-04
- A leap second for the end of 2005 was announced.
0.29 2005-06-03
[ *** BACKWARDS INCOMPATIBILITIES *** ]
- When adding/subtracting a duration with months or days that crossed
a DST change, the result was based on the local time, not the UTC
time. For consistent results, it is necessary to use the UTC time
(but local date) for all date math. Reported by J. Alexander Docauer.
0.28 2005-02-27
[ ENHANCEMENTS ]
- The era names for the era() method are now retrieved from the
DateTime.pm object's associated locale. The old era() method, which
was hard-coded to use BCE and CE, is renamed secular_era(). The
christian_era() method remains the same.
[ BUG FIXES ]
- Fixed an embarassing bug in the subtract_datetime() method. It was
subtracting local times, not UTC, which caused bugs when doing
subtraction across a DST change. This method is used to implement
subtraction overloading, so that was affected as well. Reported by
Mike Schilli.
- The docs for the %U and %W strftime specifiers implied that these
should be zero-padded, but the code was not doing so. Reported by J
Docauer.
Diffstat (limited to 'time/p5-DateTime')
-rw-r--r-- | time/p5-DateTime/Makefile | 5 | ||||
-rw-r--r-- | time/p5-DateTime/distinfo | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/time/p5-DateTime/Makefile b/time/p5-DateTime/Makefile index b7ae7476c37..84ba1e0e3cd 100644 --- a/time/p5-DateTime/Makefile +++ b/time/p5-DateTime/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2005/08/06 06:19:35 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2006/04/25 14:03:58 hiramatsu Exp $ -DISTNAME= DateTime-0.27 +DISTNAME= DateTime-0.30 PKGNAME= p5-${DISTNAME} -PKGREVISION= 1 CATEGORIES= time perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DateTime/} diff --git a/time/p5-DateTime/distinfo b/time/p5-DateTime/distinfo index 2b1f616d082..e8a8dd96032 100644 --- a/time/p5-DateTime/distinfo +++ b/time/p5-DateTime/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.3 2005/02/26 01:57:28 wiz Exp $ +$NetBSD: distinfo,v 1.4 2006/04/25 14:03:58 hiramatsu Exp $ -SHA1 (DateTime-0.27.tar.gz) = a1308391aec8f164a6e9a82ca039d5f9ff1f0334 -RMD160 (DateTime-0.27.tar.gz) = 51d2f7f3220d11e13b56fde92d2f430e626b50c0 -Size (DateTime-0.27.tar.gz) = 82181 bytes +SHA1 (DateTime-0.30.tar.gz) = 057857d5804ebb77730f05a8be699aa71e5a53fc +RMD160 (DateTime-0.30.tar.gz) = 0a9013fd261eea554761e51ddcd0b3acf2c6a323 +Size (DateTime-0.30.tar.gz) = 88484 bytes |