Changes for version 0.08

  • IMPROVEMENTS
    • All set/modify methods now return the datetime object, in order to make method chaining possible. Patch by Iain Truskett.
    • The _greg2rd and _rd2greg methods have been renamed _ymd2rd and _rd2ymd, so as to make them look more normal when used in subclasses.
    • Added a truncate() method. Suggested by Flavio Glock.
    • Added Swedish language module. Contributed by Christian Hansen.
    • Added language modules for Afar, Amharic, Gedeo, Oromo, Sidama, Somali, and Tigrinya (Eritrean and Ethiopian), all courtesy of Daniel Yacob.
    • Various doc improvements, including a section on invalid local times.
  • BUG FIXES
    • The week() method was wrong for many dates. Reported by Christian Hansen.
    • The last_day_of_month() method had the DateTime class hard-coded in it. Reported by Eugene van der Pijll.
    • Fixed a bug when comparing a datetime object to infinity (or negative infinity). Fixed by Flavio Glock.
    • Date math has been fixed so that it affects the _local_ times. This means that sometimes 1 day is not equal to 24 hours when the addition/subtraction crosses over a Daylight Saving Time change. See the "How Date Math is Done" section of the docs for more details.
  • BACKWARDS INCOMPATIBILITIES
    • Objects constructed via the new() method now have a "floating" time zone by default, instead of using the "local" time zone. This is just simpler to deal with, and for code where time zones are unimportant, this is the most appropriate default.

Modules

Reference implementation for Perl DateTime objects
Duration objects for date math
base class for DateTime.pm-related language localization

Provides

in lib/DateTime/Language/Afar.pm
in lib/DateTime/Language/Amharic.pm
in lib/DateTime/Language/Austrian.pm
in lib/DateTime/Language/Brazilian.pm
in lib/DateTime/Language/Czech.pm
in lib/DateTime/Language/Danish.pm
in lib/DateTime/Language/Dutch.pm
in lib/DateTime/Language/English.pm
in lib/DateTime/Language/French.pm
in lib/DateTime/Language/Gedeo.pm
in lib/DateTime/Language/German.pm
in lib/DateTime/Language/Italian.pm
in lib/DateTime/Language/Norwegian.pm
in lib/DateTime/Language/Oromo.pm
in lib/DateTime/Language/Sidama.pm
in lib/DateTime/Language/Somali.pm
in lib/DateTime/Language/Spanish.pm
in lib/DateTime/Language/Swedish.pm
in lib/DateTime/Language/TigrinyaEritrean.pm
in lib/DateTime/Language/TigrinyaEthiopian.pm