pkgsrc changes:
- Adjust build/test dependencies
Upstream changes:
0.55 2010-03-16
- Get all tests passing on 5.6.2. Thanks to Zefram for help spotting the
problems.
- Moved code to my hg repo at http://hg.urth.org/hg/DateTime.pm.
pkgsrc changes:
- Adjust HOMEPAGE to CPAN "Permalink"
- Adjust dependencies according to module's META.yml
Upstream changes:
0.85 2010-03-13 <schubiger@cpan.org>
- Merged development version to stable.
0.84_03 2010-03-11 <schubiger@cpan.org>
- Resolve short aliases only if preceded by a digit.
- Don't capture the date separator for matching with the format.
0.84_02 2010-03-09 <schubiger@cpan.org>
- Guess the format of dates with a dot or hyphen as separator.
- Check for separator mismatch when not in lax mode.
0.84_01 2010-02-24 <schubiger@cpan.org>
- Use the format parameter case-insensitively and test it.
- Don't bless into a reference within the metadata base constructor.
- Add some missing commas to the grammar description.
pkgsrc changes:
- Update HOMEPAGE to CPAN "Permalink"
Upstream changes:
0.15 Mon Mar 10 2010
- fix tests for DateTime string overloading problem
(thanks Andreas Koenig and Michael Schwern)
pkgsrc changes:
- Adjust license definition
Upstream changes:
0.80 2010-03-14
- Remove the 00sig.t test, which seemed to cause random failures based on CPAN
testers reports.
- Lots of cleanup in test code.
- Future releases will all increment by 0.01 (0.81, 0.82, etc).
- No code changes.
pkgsrc changes:
- Adjust license definition
- Adjust dependencies
Upstream changes:
0.54 2010-03-14
- Bumped the DateTime::TimeZone prereq to 1.09 to force people to use a modern
version. Previously the minimum version was 0.59, and there have been a lot
of bug fixes since then.
- String overloading now extends to string comparison, so a DateTime object
can be compared to any string. In other words
if ( $dt eq $string ) { ... }
will simply stringify $dt and then do a normal string-is-equals
check. Previously, this would blow up unless both operands were a DateTime
object.
Note that future versions of Test::More (0.95_01+) will no longer stringify
arguments to is(), which means that older versions of DateTime may cause new
test failures when you upgrade Test::More. It is highly recommended that you
upgrade DateTime before upgrading to Test::More 0.95_01+.
Patch by Michael Schwern. RT #55453.
- Allow passing end_of_month setting to $duration->inverse(). Requested by
John Siracusa. RT #53985.
pkgsrc changes:
- Add license definition
Upstream changes:
1.00 (03.09.2010) - John Siracusa <siracusa@gmail.com>
* The %i format now correctly shows 12 for 12 AM.
* Removed leading zeros from the %i format.
* Bumped version number to reflect API stability.
Upstream changes:
1.13 2010-03-08
- This release is based on version 2010e of the Olson database. This release
fixes a bug in the Bangladesh zone introduced in 2010d.
1.12 2010-03-08
- This release is based on version 2010d of the Olson database. This release
has changes for Bangladesh, Fiji, Samoa, and Chile.
pkgsrc changes:
- Adapt dependency version to pkgsrc used version numbers, not CPAN
Upstream changes:
0.14 Sun Feb 28 2010
- fix test: '1 month ago at 4pm' could be potentially less that 28 days ago.
- fix tests for infinity, -infinity, infinito, and -infinito
0.13 Sat Feb 27 2010
- make parsing for infinity and -infinity more reliable
0.12 Thu Feb 25 2010
- fix DateTime::Format::Builder import
0.11 Wed Feb 24 2010
- remove Readonly dependency
- support some postgresql datetimes: epoch, infinity, -infinity, allballs
- see http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html section 8.5.1.4
- 'infinity' returns a DateTime::Infinite::Future object
- '-infinity' returns a DateTime::Infinite::Past object
0.10 Wed Feb 24 18:45:00 2009
- support for single character am/pm strings '3p'
- support for days of the week (wednesday => the nearest future wednesday) (thanks Shawn Moore, rt #53188)
- note: this is quite limited, I need more test cases
- works: wednesday
- works: wed at 3p
- support for bare months (february)
- support for limited timezones that are not at the end of the string (thanks Dave Faraldo)
- 'Wed Nov 11 13:55:48 PST 2009' becomes
- 2009-11-11T13:55:48 America/Los_Angeles
- beginning multiple language support (contributions welcome)
- support english (en) and spanish (es)
- support dates like 'now, today, tomorrow'
- switch to strptime from regexes for some parsing for clarity
- now supports negative timezone offsets IF it is a 4 digit offset and there is a space before the offset
- works: 2007-05-06T04:44:44 -0800
- does not work: 2007-05-06T04:44:44-0800
- does not work: 2007-05-06T04:44:44-08
- does not work: 2007-05-06T04:44:44 -08
- now supports 2 digit years as the first number if the year is > 31
- works: 35-12-23 (2035-12-23T00:00:00)
- does not work: 11-12-13 (2013-11-12T00:00:00, or 2013-12-11T00:00:00 with european hinting)
- timezone parsing should now be more reliable
- you can now set a 'base' datetime object to help fill out partial datetimes
pkgsrc changes:
- Adjust Module::Build dependency (CORE module of perl 5.10.1 satisfies
requirements)
- Import time/p5-DateTime-TimeZone-HPUX to allow this module working on
HP-UX, too
Upstream changes:
1.11 2010-03-01
- This release is based on version 2010b of the Olson database. This release
has changes for Paraguay.
- Added a list of zones by country, and a list of zone links (aliases) to the
docs for DateTime::TimeZone::Catalog.
required to get time/p5-DateTime-TimeZone working well on HP-UX.
This distribution implement detection of the local timezone as defined at
the operating system level, either in $ENV{TZ} or in /etc/TIMEZONE.
HP-UX has its own system for defining timezones. See tztab(4). This is
incompatible with the now common set of timezones known as the Olson DB
that is used by DateTime::TimeZone. This module fixes this hole by
providing the map between the two systems.
Upstream changes:
0.84 2010-02-22 <schubiger@cpan.org>
- Merged development version to stable.
0.83_04 2010-02-16 <schubiger@cpan.org>
- Enhance the regular expression matching a non-word alias.
- Correct the indentation of _Nth_Weekday_of_Month_Year().
0.83_03 2010-02-14 <schubiger@cpan.org>
- Introduce short name aliases. [rt #53976 - Kevin Field]
- Support shortened relative dates with a +/- prefix.
[rt #53976 - Kevin Field]
- Add according tests for aliases and prefixed dates.
- Test for case-insensitive processing of input strings.
- Test compile-time loading of Aliases.pm.
0.83_02 Wed Jan 27 10:42:41 CET 2010
- New supported formats: <time> <weekday> and <time> on <weekday>.
[rt #53979 - Kevin Field]
0.83_01 Mon Jan 18 10:28:42 CET 2010
- Pass the time zone object instead of name to the final DateTime
constructor. [rt #53268 - Eric Wilhelm]
pkgsrc changes:
- Adjusting license
Upstream changes:
0.07 Sun Jan 17 23:35:40 MST 2010
- fix test failures caused by tests using DateTime->now(), all tests
should now pass reguardless of the "wallclock" when they are being run
pkgsrc changes:
- Adding license
- Adjusting dependencies and module type
Upstream changes:
0.088:
- Remove DateTime::Format::DateParse from dependencies as fails lots
of tests and not used (thanks ranguard)
Upstream changes:
1.17
- Force all to use internal strptime then everyone gets %z even OSX
users.
- Finally figured out the timezone test failures on Win32 and fixed
them.
pkgsrc changes:
- Adding license definition
- Take care for correct file permissions
Upstream changes:
0.533 (10.16.2009) - John Siracusa <siracusa@gmail.com>
* Updated eval blocks to avoid stomping on $@ from an outer scope.
Upstream changes:
0.83 Wed Jan 13 15:51:11 CET 2010
- Merged development version to stable.
0.82_02 Wed Jan 6 10:57:43 CET 2010
- New supported format: M/D. [rt #53187 - Shawn M. Moore]
- Handle the new format with prefer-future semantics.
- Add tests for the new format and also for related durations.
- Document the new format and variations of it.
- Restrict counting of format separators to the formatted substring.
- Move the code processing formatted dates to a separate class.
- Fix the checking for an invalid format parameter.
- Complete <date> <time> to <time> type of durations.
- Split the duration string at word boundary of the separator.
- Restore the datetime object for each parse when running tests.
- Test compile-time loading of Formatted.pm.
0.82_01 Thu Dec 31 12:10:30 CET 2009
- Save the trace of each parse while processing a duration.
- Call for formatted dates the wrapper _set() instead of set()
in order to alter the modified counters.
- dateparse: when printing traces, print a trace for each object
returned.
- Add tests for the trace method and improve its documentation.
- Document possible bugs and caveats.
- Rename some variables with method name strings to be more
descriptive and also interpolate their strings initially.
- Substitute an expression for a block as used by 'map'.
0.82 Mon Dec 21 10:15:52 CET 2009
- Merged development version to stable.
0.81_04 Wed Dec 16 13:32:35 CET 2009
- dateparse: use the same class instance for each parse run;
match case-insensitively for commands that quit.
0.81_03 Fri Dec 11 10:32:08 CET 2009
- Use string interpolation instead of concatenation for symbolic
references in __new().
0.81_02 Wed Dec 9 20:07:19 CET 2009
- Reduce the common logic of _valid_date() and _valid_time()
by moving most of it to a method.
- Store the daytime option internally with a less nested name.
0.81_01 Mon Dec 7 11:14:19 CET 2009
- Place the common body of _add() and _subtract() in a single method.
- Comment the inverse use of _add() within _add_or_subtract().
- Set values at once within _check_time().
- Initialize tokens with an anonymous array reference.
- Purge last unneeded occurrence of 'scalar'.
0.81 Sat Nov 21 12:59:17 CET 2009
- Merged development version to stable.
0.80_02 Wed Nov 18 10:53:05 CET 2009
- Move utility and wrapper methods to separate classes.
- Test compile-time loading of Utils.pm and Wrappers.pm.
- Don't force explicit scalar context where an implicit one exists.
0.80_01 Mon Nov 2 10:59:46 CET 2009
- Invoke _valid_date() in _day_month_year() to assert the
validity of the date before setting it.
- Separate fixed time data for testing purpose from code.
0.80 Fri Oct 30 10:15:53 CET 2009
- Merged development version to stable.
0.79_02 Mon Oct 26 10:11:09 CET 2009
- Improve wording and formatting of the documentation.
- Update broken license links.
Upstream changes:
0.11 Thu Dec 10 00:00:00 2009
- pass nanoseconds instead of fractional seconds to DateTime
constructor; needed from DateTime v0.52
FIXES: #52468: Test failure, reported by GRAF
- minor documentation fixes
Pkgsrc changes:
- Adjust dependencies
Upstream changes:
0.53 2009-12-06
- Added Test::Exception to build_requires.
0.52 2009-12-05
- Numeric to ->new() are now all validated to make sure they are
integers. Previously, things like "month => 11.2" would have been
allowed. Based on a bug report from Max Kanat-Alexandar. RT #45767.
- Added a warning to the docs suggesting that you cache the locale time zone
if you need to make many DateTime objects in the local zone. Looking up the
local zone can be fairly expensive. RT #46753.
Upstream changes:
1.10 2010-01-25
- This release is based on version 2010a of the Olson database. This release
has changes for Mexico.
1.09 2010-01-18
- This release is based on version 2010a of the Olson database. This release
has changes for Bangladesh.
Upstream changes:
1.16
- Implement %z for the internal implementation of strptime().
Unfortunately this doesn't get picked up everywhere, so there are no
tests for it (yet - patches welcome).
- Fix for major bug in add_months() using negative months which were
multiples of 12. Also affected add_years() with negative years.
- Fix for object creation bug in get_epochs which called new from object
but that wasn't supported in the new() code.
- Added docs about the weakness of using epoch seconds internally and
suggested alternatives.
- Removed useless "use UNIVERSAL qw(isa)" line.
- Fix for installing over core perl version.
== Version 0.3.16 (tzdata v2009u) - 5-Jan-2010
* Support the use of '-' to denote '0' as an offset in the tz data files.
Used for the first time in the SAVE field in tzdata v2009u.
* Updated to tzdata version 2009u
(http://article.gmane.org/gmane.comp.time.tz/3053).
1.08 2009-12-28
- This release is based on version 2009u of the Olson database. This release
has changes for Bangladesh.
1.07 2009-12-24
- Fixed for local time zone determination on Win32. Our tests broke after the
December 2009 Cumulative Time Zone Update from Microsoft. Patch by David
Pinkowitz. RT #52978.
1.06 2009-12-21
- This release is based on version 2009t of the Olson database. This release
has no user-visible changes, but I like to follow along anyway.
2.1 (2009-12-14)
================
* Fix deprecation warnings about `object.__init__` taking no parameters.
* Set the VALUE parameter correctly for date values.
* Long binary data would be base64 encoded with newlines, which made the
iCalendar files incorrect. (This still needs testing).
* Correctly handle content lines which include newlines.