| 1 |
1.67 2026-08-30 |
| 2 |
|
| 3 |
- Documented that the `truncate` method can throw a fatal error if the truncation produces a |
| 4 |
datetime that doesn't exist in the local time zone. This can happen when truncating to a day (or |
| 5 |
more) in a time zone with a DST transition at midnight. Reported by @tsadok. GH #155. - |
| 6 |
- Documented that `rfc3339` does not include nanoseconds. Reported by @n1vux (Bill Ricker). GH #150. |
| 7 |
- Fixed docs for `strftime` to remove the bit that said it returned the same values as the POSIX |
| 8 |
`strftime`. This hasn't been the case for a long time. Reported by @jimav (Jim Avera). GH #148. |
| 9 |
|
| 10 |
|
| 11 |
1.66 2025-02-18 |
| 12 |
|
| 13 |
- Require Specio 0.50. That release has a bug fix for validation of integer values. Without the fix, |
| 14 |
DateTime could accept non-integer values for things like nanoseconds. Reported by @HGuillemet. GH |
| 15 |
#145. |
| 16 |
|
| 17 |
|
| 18 |
1.65 2023-11-05 |
| 19 |
|
| 20 |
- This release is the same as 1.64. This release fixes builds on macOS with |
| 21 |
Perls before 5.22.0. Reported by Simon Sawert. GH #141. |
| 22 |
|
| 23 |
|
| 24 |
1.64 2023-10-29 (TRIAL RELEASE) |
| 25 |
|
| 26 |
- Fix builds on macOS with Perls before 5.22.0. This seems to have the same |
| 27 |
issue as Windows on older Perls. Reported by Simon Sawert. GH #141. |
| 28 |
|
| 29 |
|
| 30 |
1.63 2023-10-22 |
| 31 |
|
| 32 |
- This release is the same as 1.62. This releases fixes quadmath builds on |
| 33 |
Windows. Reported by @sisyphus. GH #139. |
| 34 |
|
| 35 |
|
| 36 |
1.62 2023-09-04 (TRIAL RELEASE) |
| 37 |
|
| 38 |
- This is take 3 of trying to use `Perl_isfinite` where it's available. Now we |
| 39 |
simply don't use it on Windows unless the Perl version is 5.22.0 or later. |
| 40 |
|
| 41 |
|
| 42 |
1.61 2023-09-02 (TRIAL RELEASE) |
| 43 |
|
| 44 |
- Fix use of the `Perl_isfinite` function on platforms where this is |
| 45 |
broken. On Windows with Perl <= 5.20, it seems like `Perl_isfinite` exists |
| 46 |
but it calls `Perl_isinf` and `Perl_isnan`, which don't exist. |
| 47 |
|
| 48 |
|
| 49 |
1.60 2023-08-19 (TRIAL RELEASE) |
| 50 |
|
| 51 |
- Switched to using the `Perl_isfinite` function instead of trying to |
| 52 |
implement this ourselves in XS code. This should fix quadmath builds on |
| 53 |
Windows. Reported by @sisyphus. GH #139. |
| 54 |
|
| 55 |
|
| 56 |
1.59 2022-10-23 |
| 57 |
|
| 58 |
- Fixed tests to pass with DateTime::Locale 1.37+. Reported by Slaven |
| 59 |
Rezić. GH #34. |
| 60 |
|
| 61 |
|
| 62 |
1.58 2022-04-18 |
| 63 |
|
| 64 |
- Fixed tests so that they ignore the value set in the |
| 65 |
`PERL_DATETIME_DEFAULT_TZ` env var, if one exists. Reported by Ian Gibbs. GH |
| 66 |
#128. |
| 67 |
|
| 68 |
|
| 69 |
1.57 2022-03-03 |
| 70 |
|
| 71 |
- The last release would die if Sub::Util was not available, but this should |
| 72 |
just be an optional requirement. Fixed by Paul Howarth. GH #131. |
| 73 |
|
| 74 |
- This is the second time I've introduced this bug, so now there's a test to |
| 75 |
make sure that DateTime can be loaded if Sub::Util is not |
| 76 |
installed. Hopefully this will prevent a third occurrence of this bug. |
| 77 |
|
| 78 |
|
| 79 |
1.56 2022-03-02 |
| 80 |
|
| 81 |
- The DateTime->from_epoch constructor now accepts a single, non-hashref |
| 82 |
argument, and validates it as an epoch value. Requested by Neil Bowers. GH |
| 83 |
#119. |
| 84 |
|
| 85 |
|
| 86 |
1.55 2021-12-23 |
| 87 |
|
| 88 |
- Another documentation fix release. This fixes some mistakes, fixes some |
| 89 |
broken links, and removes all references to the long-dead datetime.perl.org |
| 90 |
site. |
| 91 |
|
| 92 |
|
| 93 |
1.54 2020-12-04 |
| 94 |
|
| 95 |
- This release contains a lot of small documentation revisions, both to |
| 96 |
formatting and content. |
| 97 |
|
| 98 |
|
| 99 |
1.53 2020-11-08 |
| 100 |
|
| 101 |
- Added a $dt->rfc3339 method. Based on discussion in GH #109 by worthmine. |
| 102 |
|
| 103 |
|
| 104 |
1.52 2020-02-29 |
| 105 |
|
| 106 |
- Added a $dt->is_between($dt1, $dt2) method. Based on GH #97 by philip r |
| 107 |
brenan. |
| 108 |
|
| 109 |
- Simplify the calculation of leap seconds in XS. This is a little more |
| 110 |
efficient for most use cases (anything with future or recent past |
| 111 |
datetimes). Contributed by Mark Overmeer. GH #91. |
| 112 |
|
| 113 |
|
| 114 |
1.51 2019-04-21 |
| 115 |
|
| 116 |
- Fix CLDR formatting of 'S' pattern with more than 9 digits of |
| 117 |
precision. While we only store nanoseconds in the DateTime object we should |
| 118 |
still be able to handle an arbitrary number of digits properly. Fixed by |
| 119 |
Slaven Rezić. GH #89. |
| 120 |
|
| 121 |
|
| 122 |
1.50 2018-08-01 |
| 123 |
|
| 124 |
- The %F strftime pattern incorrectly zero-padded numbers less than four |
| 125 |
digits. According to POSIX::strftime, this should output the year as-is |
| 126 |
without padding. Reported by Andy Lester. GH #83. |
| 127 |
|
| 128 |
|
| 129 |
1.49 2018-05-20 |
| 130 |
|
| 131 |
- Updated the ppport.h with the latest version of Devel::PPPort. This fixes a |
| 132 |
compilation warning when compiling with 5.27.11. Reported by Jim |
| 133 |
Keenan. Fixed GH #81. |
| 134 |
|
| 135 |
|
| 136 |
1.48 2018-03-26 |
| 137 |
|
| 138 |
- The last release would die if Sub::Util was not available, but this should |
| 139 |
just be an optional requirement. Fixed by Paul Howarth. Fixes GH #77. PR |
| 140 |
#78. |
| 141 |
|
| 142 |
|
| 143 |
1.47 2018-03-25 |
| 144 |
|
| 145 |
- DateTime::Duration->multiply now only allows integer |
| 146 |
multipliers. Implemented by Dan Stewart. PR #73. |
| 147 |
|
| 148 |
- Added is_last_day_of_quarter() and is_last_day_of_year() |
| 149 |
methods. Implemented by Dan Stewart. PR #72. |
| 150 |
|
| 151 |
- When an exception was thrown while adding a duration the object could be |
| 152 |
left in a broken state, with the duration partially applied. Subsequent |
| 153 |
addition or subtraction would produce the wrong results. Reported by Pawel |
| 154 |
Pabian. GH #74. |
| 155 |
|
| 156 |
|
| 157 |
1.46 2018-02-11 |
| 158 |
|
| 159 |
- Fixed the formatting for the CLDR "S" symbol. It could in some cases round |
| 160 |
_up_ to 1 instead of truncating a value. For example, the "SSS" symbol would |
| 161 |
format 999,999,999 nanoseconds as "1.000". Fixed by Gianni Ceccarelli. PR |
| 162 |
#71. |
| 163 |
|
| 164 |
|
| 165 |
1.45 2017-12-26 |
| 166 |
|
| 167 |
- Added month_length(), quarter_length() and year_length() |
| 168 |
methods. Implemented by Dan Stewart. PR #70. |
| 169 |
|
| 170 |
|
| 171 |
1.44 2017-08-20 |
| 172 |
|
| 173 |
- Added a stringify() method. This does exactly the same thing as |
| 174 |
stringification overloading does. GH #58. |
| 175 |
|
| 176 |
- Added an is_last_day_of_month() method to indicate whether or not an object |
| 177 |
falls on the last day of its month. GH #60. |
| 178 |
|
| 179 |
|
| 180 |
1.43 2017-05-29 |
| 181 |
|
| 182 |
- Added a small optimization for boolification overloading. Rather than |
| 183 |
relying on a fallback to stringification, we now return true directly, which |
| 184 |
is a little faster in cases like "if ($might_be_dt) { ... }". |
| 185 |
|
| 186 |
- The datetime() method now accepts a single argument to use as the separator |
| 187 |
between the date and time portion. This defaults to "T". |
| 188 |
|
| 189 |
|
| 190 |
1.42 2016-12-25 |
| 191 |
|
| 192 |
- The DateTime::Duration->add and ->subtract methods now accept |
| 193 |
DateTime::Duration objects. This used to work by accident, but this is now |
| 194 |
done intentionally (with docs and tests). Reported by Petr Pisar. GitHub |
| 195 |
#50. |
| 196 |
|
| 197 |
|
| 198 |
1.41 2016-11-16 |
| 199 |
|
| 200 |
- The DateTime->add and ->subtract methods now accept DateTime::Duration |
| 201 |
objects. This used to work by accident, but this is now done intentionally |
| 202 |
(with docs and tests). Based on PR #45 from Sam Kington. |
| 203 |
|
| 204 |
|
| 205 |
1.40 2016-11-12 |
| 206 |
|
| 207 |
- Switched from RT to the GitHub issue tracker. |
| 208 |
|
| 209 |
|
| 210 |
1.39 2016-09-17 |
| 211 |
|
| 212 |
- Bump minimum required Perl to 5.8.4 from 5.8.1. Looking at CPAN Testers, |
| 213 |
this distro hasn't actually passed with earlier Perl versions since |
| 214 |
1.35. I'm not explicitly testing with anything earlier than 5.8.8 |
| 215 |
|
| 216 |
|
| 217 |
1.38 2016-09-16 |
| 218 |
|
| 219 |
- This release includes changes from past trial releases to switch from |
| 220 |
Params::Validate and Params::ValidationCompiler. Relevant release notes from |
| 221 |
those trial releases are repeated here for clarity. |
| 222 |
|
| 223 |
- Replaced Params::Validate with Params::ValidationCompiler and Specio. In my |
| 224 |
benchmarks this makes constructing a new DateTime object about 14% |
| 225 |
faster. However, it slows down module load time by about 100 milliseconds |
| 226 |
(1/10 of a second) on my desktop system with a primed cache (so really |
| 227 |
measuring compile time, not disk load time). |
| 228 |
|
| 229 |
- When you pass a locale to $dt->set you will now get a warning suggesting you |
| 230 |
should use $dt->set_locale instead. The previous trial releases didn't allow |
| 231 |
locale to be passed at all, which broke a lot of modules. I've sent PRs, but |
| 232 |
for now the parameter should be allowed (but discouraged). Reported by |
| 233 |
Slaven Rezić. RT #115420. |
| 234 |
|
| 235 |
- Removed the long-deprecated DateTime->DefaultLanguage method. Use |
| 236 |
DefaultLocale instead. |
| 237 |
|
| 238 |
- Removed the long-deprecated "language" constructor parameter. Use "locale" |
| 239 |
instead. |
| 240 |
|
| 241 |
|
| 242 |
1.37 2016-08-14 (TRIAL RELEASE) |
| 243 |
|
| 244 |
- Require the latest Params::ValidationCompiler (0.11). |
| 245 |
|
| 246 |
|
| 247 |
1.36 2016-08-06 |
| 248 |
|
| 249 |
- Require namespace::autoclean 0.19. |
| 250 |
|
| 251 |
|
| 252 |
1.35 2016-08-05 |
| 253 |
|
| 254 |
- Use namespace::autoclean in all packages which import anything. Without |
| 255 |
cleaning the namespace, DateTime ends up with "methods" like try and catch |
| 256 |
(from Try::Tiny), which can lead to very confusing bugs. Reported by Mischa |
| 257 |
Schwieger. RT #115983. |
| 258 |
|
| 259 |
|
| 260 |
1.34 2016-07-06 |
| 261 |
|
| 262 |
- Added the leap second coming on December 31, 2016. |
| 263 |
|
| 264 |
|
| 265 |
1.33 2016-06-29 |
| 266 |
|
| 267 |
- Fixed the $dt->set docs to say that you cannot pass a locale (even though |
| 268 |
you can but you'll get a warning) and added more docs for $dt->set_locale. |
| 269 |
|
| 270 |
- Require DateTime::Locale 1.05. |
| 271 |
|
| 272 |
- Require DateTime::TimeZone 2.00. |
| 273 |
|
| 274 |
|
| 275 |
1.32 2016-06-28 |
| 276 |
|
| 277 |
- This release *does not* include any of the changes in the 1.29-1.30 TRIAL |
| 278 |
releases. |
| 279 |
|
| 280 |
- When you pass a locale to $dt->set you will now get a warning suggesting you |
| 281 |
should use $dt->set_locale instead. If you have DateTime::Format::Mail |
| 282 |
installed you should upgrade to 0.0403 or later, since that module will |
| 283 |
trigger this warning. |
| 284 |
|
| 285 |
- Added support for $dt->truncate( to => 'quarter' ). Implemented by Michael |
| 286 |
Conrad. GitHub #17. |
| 287 |
|
| 288 |
|
| 289 |
1.31 2016-06-18 (TRIAL RELEASE) |
| 290 |
|
| 291 |
- When you pass a locale to $dt->set you will now get a warning suggesting you |
| 292 |
should use $dt->set_locale instead. The previous trial releases didn't allow |
| 293 |
locale to be passed at all, which broke a lot of modules. I've sent PRs, but |
| 294 |
for now the parameter should be allowed (but discouraged). Reported by |
| 295 |
Slaven Rezić. RT #115420. |
| 296 |
|
| 297 |
|
| 298 |
1.30 2016-06-18 (TRIAL RELEASE) |
| 299 |
|
| 300 |
- Require the latest version of Params::ValidationCompiler (0.06). Tests failed |
| 301 |
with 0.01. |
| 302 |
|
| 303 |
|
| 304 |
1.29 2016-06-17 (TRIAL RELEASE) |
| 305 |
|
| 306 |
- Replaced Params::Validate with Params::ValidationCompiler and Specio. In my |
| 307 |
benchmarks this makes constructing a new DateTime object about 14% |
| 308 |
faster. However, it slows down module load time by about 100 milliseconds |
| 309 |
(1/10 of a second) on my desktop system with a primed cache (so really |
| 310 |
measuring compile time, not disk load time). |
| 311 |
|
| 312 |
|
| 313 |
1.28 2016-05-21 |
| 314 |
|
| 315 |
- Fixed handling of some floating point epochs. Because DateTime treated the |
| 316 |
epoch like a string instead of a number, certain epochs with a non-integer |
| 317 |
value ended up treated like integers (Perl is weird). Patch by Christian |
| 318 |
Hansen. GitHub #15. This also addresses the problem that GitHub #6 brought |
| 319 |
up. Addresses RT #96452, reported by Slaven Rezić. |
| 320 |
|
| 321 |
|
| 322 |
1.27 2016-05-13 |
| 323 |
|
| 324 |
- Added an environment variable PERL_DATETIME_DEFAULT_TZ to globally set the |
| 325 |
default time zone. Using this is very dangerous! Be careful!. Patch by |
| 326 |
Ovid. GitHub #14. |
| 327 |
|
| 328 |
|
| 329 |
1.26 2016-03-21 |
| 330 |
|
| 331 |
- Switched from Module::Build to ExtUtils::MakeMaker. Implementation by Karen |
| 332 |
Etheridge. GitHub #13. |
| 333 |
|
| 334 |
|
| 335 |
1.25 2016-03-06 |
| 336 |
|
| 337 |
- DateTime->from_object would die if given a DateTime::Infinite object. Now it |
| 338 |
returns another DateTime::Infinite object. Reported by Greg Oschwald. RT |
| 339 |
#112712. |
| 340 |
|
| 341 |
|
| 342 |
1.24 2016-02-29 |
| 343 |
|
| 344 |
- The last release partially broke $dt->time. If you passed a value to use as |
| 345 |
unit separator, this was ignored. Reported by Sergiy Zuban. RT #112585. |
| 346 |
|
| 347 |
|
| 348 |
1.23 2016-02-28 |
| 349 |
|
| 350 |
- Make all DateTime::Infinite objects return the system's representation of |
| 351 |
positive or negative infinity for any method which returns a number of |
| 352 |
string representation (year(), month(), ymd(), iso8601(), etc.). Previously |
| 353 |
some of these methods could return "Nan", "-Inf--Inf--Inf", and other |
| 354 |
confusing outputs. Reported by Greg Oschwald. RT #110341. |
| 355 |
|
| 356 |
|
| 357 |
1.22 2016-02-21 (TRIAL RELEASE) |
| 358 |
|
| 359 |
- Fixed several issues with the handling of non-integer values passed to |
| 360 |
from_epoch(). |
| 361 |
|
| 362 |
This method was simply broken for negative values, which would end up being |
| 363 |
incremented by a full second, so for example -0.5 became 0.5. |
| 364 |
|
| 365 |
The method did not accept all valid float values. Specifically, it did not |
| 366 |
accept values in scientific notation. |
| 367 |
|
| 368 |
Finally, this method now rounds all non-integer values to the nearest |
| 369 |
millisecond. This matches the precision we can expect from Perl itself (53 |
| 370 |
bits) in most cases. |
| 371 |
|
| 372 |
Patch by Christian Hansen. GitHub #11. |
| 373 |
|
| 374 |
|
| 375 |
1.21 2015-09-30 |
| 376 |
|
| 377 |
- Make all tests pass with both the current DateTime::Locale and the upcoming |
| 378 |
new version (currently still in trial releases). |
| 379 |
|
| 380 |
|
| 381 |
1.20 2015-07-01 |
| 382 |
|
| 383 |
- The 1.18 release added the June 30, 2015 leap second to the XS code, but I |
| 384 |
forgot to update the corresponding pure Perl implementation in |
| 385 |
DateTime::LeapSecond. |
| 386 |
|
| 387 |
|
| 388 |
1.19 2015-05-31 |
| 389 |
|
| 390 |
- If you compared a DateTime object to an undef value, you might have received |
| 391 |
a warning pointing to code inside DateTime.pm, instead of in your own |
| 392 |
code. Fixed by Jason McIntosh. GH #7. |
| 393 |
|
| 394 |
- The 30future-tz.t could fail if run at certain very specific times. This |
| 395 |
should now be much less likely, unless a time zone being tested implements a |
| 396 |
DST change at noon (which would be even more insane than DST already is by a |
| 397 |
huge factor). Reported by Karen Etheridge and diagnosed by Slaven Rezić. RT |
| 398 |
#102925. |
| 399 |
|
| 400 |
|
| 401 |
1.18 2015-01-05 |
| 402 |
|
| 403 |
- There will be a new leap second on June 30, 2015. |
| 404 |
|
| 405 |
|
| 406 |
1.17 2015-01-04 |
| 407 |
|
| 408 |
- No code changes from the 1.16 release. |
| 409 |
|
| 410 |
|
| 411 |
1.16 2015-01-04 (TRIAL RELEASE) |
| 412 |
|
| 413 |
- Test fix for systems where IVs are 4 bytes long. |
| 414 |
|
| 415 |
|
| 416 |
1.15 2015-01-03 (TRIAL RELEASE) |
| 417 |
|
| 418 |
- Trying this again ... Experimental fix for adding very large numbers of |
| 419 |
days. Previously, trying to add more than around 2^28 days could cause |
| 420 |
errors if the result ended up in a leap year. This is being released as a |
| 421 |
trial release because I'm not sure how this change will behave on a 32-bit |
| 422 |
Perl. Reported by KMX. RT #97046. |
| 423 |
|
| 424 |
|
| 425 |
1.14 2015-01-03 |
| 426 |
|
| 427 |
- Accidentally released 1.13 as a non-TRIAL release. Releasing 1.13 minus the |
| 428 |
integer change so there's a known-safe stable release on CPAN for people to |
| 429 |
install. |
| 430 |
|
| 431 |
|
| 432 |
1.13 2015-01-03 |
| 433 |
|
| 434 |
* This release was deleted from CPAN. |
| 435 |
|
| 436 |
- Experimental fix for adding very large numbers of days. Previously, trying |
| 437 |
to add more than around 2^28 days could cause errors if the result ended up |
| 438 |
in a leap year. This is being released as a trial release because I'm not |
| 439 |
sure how this change will behave on a 32-bit Perl. Reported by KMX. RT |
| 440 |
#97046. |
| 441 |
|
| 442 |
- Various small doc chances to address RT #96958, #98733, and #101262. |
| 443 |
|
| 444 |
|
| 445 |
1.12 2014-08-31 |
| 446 |
|
| 447 |
- The last release had the wrong repo info in the metadata. |
| 448 |
|
| 449 |
|
| 450 |
1.11 2014-08-31 |
| 451 |
|
| 452 |
- The latest historical changes in DateTime::TimeZone 1.74 caused some tests |
| 453 |
to fail. Reported by Slaven Rezić. RT #98483. |
| 454 |
|
| 455 |
- This release of DateTime.pm now requires the DateTime::TimeZone 1.74. |
| 456 |
|
| 457 |
|
| 458 |
1.10 2014-05-05 |
| 459 |
|
| 460 |
- Some tests added in 1.09 would fail on a Perl without a 64-bit |
| 461 |
gmtime(). Reported by Jerome Eteve. RT #95345. |
| 462 |
|
| 463 |
|
| 464 |
1.09 2014-05-03 |
| 465 |
|
| 466 |
- A call to ->truncate( to => 'week' ) could fail but leave the object |
| 467 |
changed. RT #93347. |
| 468 |
|
| 469 |
- The value of ->jd() is now calculated based on ->mjd() instead of the other |
| 470 |
way around. This reduces floating point errors a bit when calculating MJD, |
| 471 |
and should have a negligible impact on the accuracy of JD. Reported by Anye |
| 472 |
Li. RT #92972. See the ticket for a more detailed description of what this |
| 473 |
fixes. |
| 474 |
|
| 475 |
- Attempting to construct a DateTime object with a year >= 5000 and a time |
| 476 |
zone other than floating or DST now issues a warning. This warning may go |
| 477 |
away once DateTime::TimeZone is made much faster. Inspired by a bug report |
| 478 |
from Lloyd Fournier. RT #92655. |
| 479 |
|
| 480 |
|
| 481 |
1.08 2014-03-11 |
| 482 |
|
| 483 |
- DateTime now calls DateTime->_core_time() instead of calling Perl's time() |
| 484 |
built-in directly. This makes it much easier to override the value of time() |
| 485 |
that DateTime sees. This may make it easier to write tests for code that |
| 486 |
uses DateTime . |
| 487 |
|
| 488 |
|
| 489 |
1.07 2014-02-06 |
| 490 |
|
| 491 |
- Added a hack to get this module working on Android. RT #92671. |
| 492 |
|
| 493 |
|
| 494 |
1.06 2013-12-31 |
| 495 |
|
| 496 |
- DateTime's attempt to generate infinity by calculating 9**9**9 actually got |
| 497 |
a number on some platforms, like powerpcspe. Reported by Gregor Hermann. RT |
| 498 |
#91696. |
| 499 |
|
| 500 |
|
| 501 |
1.05 2013-12-22 |
| 502 |
|
| 503 |
- Added a new CLDR ZZZZZ specifier, which is like ZZZ but inserts a |
| 504 |
colon. Patch by Ricardo Signes. |
| 505 |
|
| 506 |
- Added a new option for the truncate() method to truncate to the |
| 507 |
"local_week". This truncates to the locale's notion of the first day of the |
| 508 |
week, rather than always truncating to Monday. Patch by Christian Hansen. |
| 509 |
|
| 510 |
|
| 511 |
1.04 2013-12-07 |
| 512 |
|
| 513 |
- Calling set_locale() or set_formatter() on an object with an ambiguous local |
| 514 |
time could change the underlying UTC time for that object. Reported by Marta |
| 515 |
Cuaresma Saturio. RT #90583. |
| 516 |
|
| 517 |
|
| 518 |
1.03 2013-04-17 |
| 519 |
|
| 520 |
- The set_time_zone() method was not returning the object when called with a |
| 521 |
name that matched the current zone. Reported by Noel Maddy. RT #84699. |
| 522 |
|
| 523 |
|
| 524 |
1.02 2013-04-15 |
| 525 |
|
| 526 |
- When a constructor method like new() or today() was called on an object, |
| 527 |
you'd get an error message like 'Can't locate object method |
| 528 |
"_normalize_nanoseconds" via package "2013-04-15T00:00:00"'. This has been |
| 529 |
fixed to provide a sane error message. Patch by Doug Bell. |
| 530 |
|
| 531 |
- When set_time_zone() is called with a name that matches the current time |
| 532 |
zone, DateTime now short circuits and avoids a lot of work. Patch by Mark |
| 533 |
Stosberg. |
| 534 |
|
| 535 |
|
| 536 |
1.01 2013-04-01 |
| 537 |
|
| 538 |
- Fixed test failures on older Perls. |
| 539 |
|
| 540 |
|
| 541 |
1.00 2013-03-31 |
| 542 |
|
| 543 |
- Bumped the version to 1.00. This is mostly because my prior use of both X.YY |
| 544 |
and X.YYYY versions causes trouble for some packaging systems. Plus after 10 |
| 545 |
years it's probably ready to be called 1.00. Requested by Adam. RT #82800. |
| 546 |
|
| 547 |
- The %j specifier for strftime was not zero-padding 1 and 2 digit |
| 548 |
numbers. Fixed by Christian Hansen. RT #84310. |
| 549 |
|
| 550 |
- The truncate method was sloppy about validating its "to" parameter, so you |
| 551 |
could pass things like "years" or "month whatever anything goes". The method |
| 552 |
would accept the parameter but then not actually truncate the object. RT |
| 553 |
#84229. |
| 554 |
|
| 555 |
- Previously, if a call to $dt->set_time_zone() failed it would still change |
| 556 |
the time zone of the object, leaving it in a broken state. Reported by Bill |
| 557 |
Moseley. RT #83940. |
| 558 |
|
| 559 |
- DateTime::Infinite objects should no longer die when methods that require a |
| 560 |
locale are called. Instead, these methods return undef for names and |
| 561 |
Inf/-Inf for numbers. This affects methods such as day_name() as well as |
| 562 |
CLDR and strftime formats. When a locale-specific format is used (like the |
| 563 |
"full" datetime format) it uses the en_US format. Reported by Paul |
| 564 |
Boldra. RT #67550. |
| 565 |
|
| 566 |
|
| 567 |
0.78 2012-11-16 |
| 568 |
|
| 569 |
- Reverted the change to round nanoseconds up or down in various |
| 570 |
situations. Now we always round down. This avoids the case where rounding |
| 571 |
up would require us to then increment the second value (which could then |
| 572 |
require us to increment the minute, which could then require us to increment |
| 573 |
the hour, which could then ...). |
| 574 |
|
| 575 |
In other words, we don't want to round 2011-12-31T23:59:59.999999 up to |
| 576 |
2012-01-01T00:00:00, because that would be insane. |
| 577 |
|
| 578 |
This applies to the return values for ->microsecond, ->millisecond, and the |
| 579 |
%N specifier for strftime. |
| 580 |
|
| 581 |
Patch by Martin Hasch. RT #79845. |
| 582 |
|
| 583 |
|
| 584 |
0.77 2012-09-25 |
| 585 |
|
| 586 |
- POD changes that should make the documentation look better, especially on |
| 587 |
the web. |
| 588 |
|
| 589 |
|
| 590 |
0.76 2012-07-01 |
| 591 |
|
| 592 |
- The DateTime->subtract method ignored the end_of_month parameter. Patch by |
| 593 |
Chris Reinhardt. RT #77844. |
| 594 |
|
| 595 |
|
| 596 |
0.75 2012-06-11 |
| 597 |
|
| 598 |
- The epoch for years 1-999 was broken because Time::Local is "clever". A pox |
| 599 |
on all clever APIs, I say! Reported by Christian Hansen. RT #77719. |
| 600 |
|
| 601 |
- Shut up compilation warning from 5.17.x. Reported by Tom Wyant. RT #77490. |
| 602 |
|
| 603 |
|
| 604 |
0.74 2012-03-22 |
| 605 |
|
| 606 |
- Small packaging fix for metacpan's benefit. No need to upgrade. |
| 607 |
|
| 608 |
|
| 609 |
0.73 2012-03-17 |
| 610 |
|
| 611 |
- Change tests to work with Zefram's entirely rebuilt DateTime::TimeZone |
| 612 |
distribution, which will replace the current implementation. Patch by |
| 613 |
Zefram. RT #75757. |
| 614 |
|
| 615 |
|
| 616 |
0.72 2012-01-05 |
| 617 |
|
| 618 |
- Remove Test::DependentModules from the dep list. This is used by some |
| 619 |
author-only tests. Reported by Zefram. |
| 620 |
|
| 621 |
|
| 622 |
0.71 2012-01-05 |
| 623 |
|
| 624 |
- There will be a new leap second on June 30, 2012. |
| 625 |
|
| 626 |
|
| 627 |
0.70 2011-05-09 |
| 628 |
|
| 629 |
- Really fix %N, finally. This was breaking the DateTime::Event::Recurrence |
| 630 |
test suite. Patch by Dagfinn Ilmari Mannsåker. |
| 631 |
|
| 632 |
|
| 633 |
0.69 2011-05-03 |
| 634 |
|
| 635 |
- When a DateTime object had nanoseconds == 0, the %N strftime specifier |
| 636 |
always returned "0" regardless of the precision requested. Reported by John |
| 637 |
Siracusa. RT #67928. |
| 638 |
|
| 639 |
|
| 640 |
0.68 2011-04-25 |
| 641 |
|
| 642 |
- The tests for %N in the last release relied on the vagaries of floating |
| 643 |
point math on a 64-bit system. Now the from_epoch() method just uses string |
| 644 |
operations to separate the epoch into an integer value and a mantissa. This |
| 645 |
avoids floating point insanity. Reported by zefram. RT #67736. |
| 646 |
|
| 647 |
|
| 648 |
0.67 2011-04-24 |
| 649 |
|
| 650 |
- The %N strftime specifier simply truncated nanoseconds, rather than rounding |
| 651 |
them. Reported by Michael R. Davis. RT #66744. |
| 652 |
|
| 653 |
- The %U strftime specifier was off by one in years where January 1st was a |
| 654 |
Sunday. Patch by Christian Hansen. RT #67631. |
| 655 |
|
| 656 |
- The %W strftime specifier was off by one in years where January 1st was a |
| 657 |
Sunday or Monday. Patch by Christian Hansen. RT #67631. |
| 658 |
|
| 659 |
- Some small optimizations from Christian Hansen. The biggest impact is for |
| 660 |
calculating week_of_month, week_number, and week_year. |
| 661 |
|
| 662 |
- This distro now requires Perl 5.8.1+ (it implicitly did this anyway now that |
| 663 |
Params::Validate is 5.8.1+). |
| 664 |
|
| 665 |
|
| 666 |
0.66 2010-11-26 |
| 667 |
|
| 668 |
- A bunch of documentation cleanup. No code changes. |
| 669 |
|
| 670 |
|
| 671 |
0.65 2010-10-25 |
| 672 |
|
| 673 |
- Actually put the right $VERSION in every package. No other changes. |
| 674 |
|
| 675 |
|
| 676 |
0.64 2010-10-25 |
| 677 |
|
| 678 |
* All the constructors besides new() ended up calling new(), which meant that |
| 679 |
these constructors went through the parameter validation code |
| 680 |
twice. Avoiding this should make everything that constructs a new object |
| 681 |
(besides new() itself) a little faster. |
| 682 |
|
| 683 |
** This change breaks DateTime::Fiscal::Retail454, but no other modules, to |
| 684 |
the best of my knowledge. ** |
| 685 |
|
| 686 |
- The t/39no-so.t test failed for some people. I can't reproduce it, but this |
| 687 |
release will hopefully fix the problem. Patch by Tokuhiro Matsuno. RT |
| 688 |
#62061. |
| 689 |
|
| 690 |
- Added a section on the DateTime Project ecosystem to the docs. Addresses RT |
| 691 |
#60930. |
| 692 |
|
| 693 |
- Fixed wiki links in the docs now that the wiki has moved to a new wiki |
| 694 |
platform. |
| 695 |
|
| 696 |
- Restored some of the dzil-ification. The repo now has a very minimal |
| 697 |
Build.PL file which is just enough to build the XS code and run the |
| 698 |
tests. This fixes the total lack of prereqs in the META.* files. Reported by |
| 699 |
Bjørn-Olav. RT #62427. |
| 700 |
|
| 701 |
|
| 702 |
0.63 2010-09-24 |
| 703 |
|
| 704 |
- Actually bump the version in the module files. Oops. Reported by bricas. |
| 705 |
|
| 706 |
|
| 707 |
0.62 2010-09-23 |
| 708 |
|
| 709 |
- Don't try to test with DateTime::Format::Strptime unless we have a |
| 710 |
relatively recent version. Should fix some test failures. |
| 711 |
|
| 712 |
|
| 713 |
0.61 2010-07-16 |
| 714 |
|
| 715 |
- Switching to dzil in 0.56 broke the --pp flag for the Build.PL. Reported by |
| 716 |
Jonathan Noack. RT #59421. |
| 717 |
|
| 718 |
|
| 719 |
0.60 2010-07-03 |
| 720 |
|
| 721 |
- By default, Dist::Zilla generates a Build.PL that requires Module::Build |
| 722 |
0.3601+, but this distro really doesn't need any particular version. |
| 723 |
|
| 724 |
|
| 725 |
0.59 2010-06-29 |
| 726 |
|
| 727 |
- More packaging fixes. This release makes sure that POD only shows up in the |
| 728 |
right files. In 0.56 through 0.58, some POD in the wrong place confused the |
| 729 |
search.cpan.org POD display code, and the main module's documentation wasn't |
| 730 |
viewable. |
| 731 |
|
| 732 |
|
| 733 |
0.58 2010-06-28 |
| 734 |
|
| 735 |
- Versions 0.56 and 0.57 did not build XS properly when installing. |
| 736 |
|
| 737 |
|
| 738 |
0.57 2010-06-26 |
| 739 |
|
| 740 |
- Make DateTime::LeapSecond have the same $VERSION as every other .pm file. |
| 741 |
|
| 742 |
|
| 743 |
0.56 2010-06-26 |
| 744 |
|
| 745 |
- The set_formatter() method did not return the DateTime object, and did not |
| 746 |
actually validate the value provided for the formatter. Based on a patch by |
| 747 |
Andrew Whatson. RT #58506. |
| 748 |
|
| 749 |
- Improved docs on floating time zone. Based on suggestions by Michael |
| 750 |
Svoboda. RT #56389. |
| 751 |
|
| 752 |
- Added mention of end-of-month algorithms to docs on DateTime math. Based on |
| 753 |
a patch by Michael R. Davis. RT #58533. |
| 754 |
|
| 755 |
- License is now Artistic 2.0. |
| 756 |
|
| 757 |
|
| 758 |
0.55 2010-03-16 |
| 759 |
|
| 760 |
- Get all tests passing on 5.6.2. Thanks to Zefram for help spotting the |
| 761 |
problems. |
| 762 |
|
| 763 |
- Moved code to my hg repo at http://hg.urth.org/hg/DateTime.pm. |
| 764 |
|
| 765 |
|
| 766 |
0.54 2010-03-14 |
| 767 |
|
| 768 |
- Bumped the DateTime::TimeZone prereq to 1.09 to force people to use a modern |
| 769 |
version. Previously the minimum version was 0.59, and there have been a lot |
| 770 |
of bug fixes since then. |
| 771 |
|
| 772 |
- String overloading now extends to string comparison, so a DateTime object |
| 773 |
can be compared to any string. In other words |
| 774 |
|
| 775 |
if ( $dt eq $string ) { ... } |
| 776 |
|
| 777 |
will simply stringify $dt and then do a normal string-is-equals |
| 778 |
check. Previously, this would blow up unless both operands were a DateTime |
| 779 |
object. |
| 780 |
|
| 781 |
Note that future versions of Test::More (0.95_01+) will no longer stringify |
| 782 |
arguments to is(), which means that older versions of DateTime may cause new |
| 783 |
test failures when you upgrade Test::More. It is highly recommended that you |
| 784 |
upgrade DateTime before upgrading to Test::More 0.95_01+. |
| 785 |
|
| 786 |
Patch by Michael Schwern. RT #55453. |
| 787 |
|
| 788 |
- Allow passing end_of_month setting to $duration->inverse(). Requested by |
| 789 |
John Siracusa. RT #53985. |
| 790 |
|
| 791 |
|
| 792 |
0.53 2009-12-06 |
| 793 |
|
| 794 |
- Added Test::Exception to build_requires. |
| 795 |
|
| 796 |
|
| 797 |
0.52 2009-12-05 |
| 798 |
|
| 799 |
- Numeric to ->new() are now all validated to make sure they are |
| 800 |
integers. Previously, things like "month => 11.2" would have been |
| 801 |
allowed. Based on a bug report from Max Kanat-Alexandar. RT #45767. |
| 802 |
|
| 803 |
- Added a warning to the docs suggesting that you cache the locale time zone |
| 804 |
if you need to make many DateTime objects in the local zone. Looking up the |
| 805 |
local zone can be fairly expensive. RT #46753. |
| 806 |
|
| 807 |
|
| 808 |
0.51 2009-11-01 |
| 809 |
|
| 810 |
- Switched to Module::Build. To force a non-XS build, start the build |
| 811 |
process with "perl Build.PL --pp". |
| 812 |
|
| 813 |
- POD-related tests are only run for the maintainer now. |
| 814 |
|
| 815 |
- Fixed handling of negative years in CLDR formatting for "y" and "u" |
| 816 |
patterns. Note that the LDML spec says nothing about how this should work, |
| 817 |
so I took my best guess. |
| 818 |
|
| 819 |
|
| 820 |
0.50 2009-05-11 |
| 821 |
|
| 822 |
- Tests were failing on Win32 because they attempted to use a negative |
| 823 |
epoch. Fixed so that these tests are skipped. Fixes RT #45966. |
| 824 |
|
| 825 |
|
| 826 |
0.49 2009-05-04 |
| 827 |
|
| 828 |
- A bug in the test code for handling overloaded objects in from_epoch |
| 829 |
resulted in a test failure on Perl 5.8.x. This release contains no |
| 830 |
changes besides a test code fix. |
| 831 |
|
| 832 |
|
| 833 |
0.48 2009-05-04 |
| 834 |
|
| 835 |
- Some of the accessors (the "main" ones like year(), month(), day(), |
| 836 |
etc) now warn if they are passed a value. Patch from Shawn |
| 837 |
Moore. Fixes RT #6979. |
| 838 |
|
| 839 |
- DateTime::Duration expected DateTime to be loaded and used some |
| 840 |
constants from it, but did not explicitly "use DateTime". Reported |
| 841 |
by Jeff Kubina. RT #44740. |
| 842 |
|
| 843 |
- The CLDR formatting for "c" and "cc" was incorrectly using the local |
| 844 |
day of the week. This meant that it gave the wrong result for |
| 845 |
locales where Monday is not considered the first day of the |
| 846 |
week. Reported by Maros Kollar. RT #45007. |
| 847 |
|
| 848 |
- DateTime->from_epoch did not allow an object which overloaded |
| 849 |
numification as the epoch value. Patch by Michael Schwern. RT |
| 850 |
#45653. |
| 851 |
|
| 852 |
- Fixed how datetime subtraction is handled for some cases around DST |
| 853 |
changes. This had been improved back in 0.30, but there were still |
| 854 |
bugs. RT #45235. |
| 855 |
|
| 856 |
|
| 857 |
0.47 2009-03-01 |
| 858 |
|
| 859 |
- The handling of CLDR format 'j' and 'jj' was backwards, using 24 |
| 860 |
hour time for locales that wanted 12 hour, and vice versa. Reported |
| 861 |
by Maros Kollar. |
| 862 |
|
| 863 |
- The CLDR formatting was missing support for lower-case "q" |
| 864 |
patterns. Reported by Maros Kollar. |
| 865 |
|
| 866 |
|
| 867 |
0.46 2009-02-28 |
| 868 |
|
| 869 |
- Added a duration_class method for the benefit of DateTime.pm |
| 870 |
subclasses. Patch by Shawn Moore. |
| 871 |
|
| 872 |
|
| 873 |
0.4501 2008-11-25 |
| 874 |
|
| 875 |
- The epoch() method got broken in the recent shuffling between |
| 876 |
Time::Local and Time::y2038. Unfortunately, the tests to catch this |
| 877 |
also got lost in the shuffle. Reported by Avianna Chao. |
| 878 |
|
| 879 |
|
| 880 |
0.45 2008-11-11 |
| 881 |
|
| 882 |
- Reverted the changes to use Time::y2038, on the recommendation of |
| 883 |
Michael Schwern (the author of said module), because it is not yet |
| 884 |
stable. This may come back in a future release. |
| 885 |
|
| 886 |
|
| 887 |
0.4401 2008-11-03 |
| 888 |
|
| 889 |
- In order to handle epochs > 2**32 properly on a 32-bit machine, we |
| 890 |
also need to import gmtime from Time::y2038. This changes fixes a |
| 891 |
whole bunch of test failures seen with 0.44. |
| 892 |
|
| 893 |
|
| 894 |
0.44 2008-11-01 |
| 895 |
|
| 896 |
- XS-capable DateTime.pm now uses Time::y2038 instead of |
| 897 |
Time::Local. This lets it handle epochs up to 142 million years |
| 898 |
before and after the Unix epoch. |
| 899 |
|
| 900 |
- Fixed a compiler warning with Perl 5.10.0. |
| 901 |
|
| 902 |
- Fixed docs for year_with_era, which had AD and BC |
| 903 |
backwards. Reported by Vynce Montgomery. RT #39923. |
| 904 |
|
| 905 |
- The format_cldr() method did not format the "yy" format properly |
| 906 |
when the year ended in "0X". Reported by Wilson Santos. RT #40555. |
| 907 |
|
| 908 |
|
| 909 |
0.4305 2008-10-03 |
| 910 |
|
| 911 |
- The pure Perl version of this module did not know about the end of |
| 912 |
2008 leap second. Reported by James T Monty. |
| 913 |
|
| 914 |
|
| 915 |
0.4304 2008-07-13 |
| 916 |
|
| 917 |
- Fix test failures when tests are run with DateTime::Locale |
| 918 |
0.41. Reported by David Cantrell via CPAN Testers. |
| 919 |
|
| 920 |
|
| 921 |
0.4303 2008-07-12 |
| 922 |
|
| 923 |
- There is a new leap second coming at the end of 2008. |
| 924 |
|
| 925 |
|
| 926 |
0.4302 2008-05-20 |
| 927 |
|
| 928 |
[ BUG FIXES ] |
| 929 |
|
| 930 |
- The 41cldr_format.t test blew up on Perl 5.6.x, because of a bug in |
| 931 |
the test code. |
| 932 |
|
| 933 |
|
| 934 |
0.4301 2008-05-18 |
| 935 |
|
| 936 |
[ BUG FIXES ] |
| 937 |
|
| 938 |
- In the 0.43 release, I forgot to change the DateTime::Locale |
| 939 |
dependency to require DT::Locale 0.40. |
| 940 |
|
| 941 |
|
| 942 |
0.43 2008-05-18 |
| 943 |
|
| 944 |
[ *** BACKWARDS INCOMPATIBILITIES *** ] |
| 945 |
|
| 946 |
* Dropped support for Perl 5.005. |
| 947 |
|
| 948 |
[ ENHANCEMENTS ] |
| 949 |
|
| 950 |
- Added support for formatting the CLDR date pattern language, which |
| 951 |
is much more powerful than strftime. This, combined with the latest |
| 952 |
DateTime::Locale, makes the localized output much more correct. |
| 953 |
|
| 954 |
[ BUG FIXES ] |
| 955 |
|
| 956 |
- The hour_1() method was returning the real hour + 1, rather than |
| 957 |
just representing midnight as 24 instead of 0. This bug fix will |
| 958 |
probably break someone's code. |
| 959 |
|
| 960 |
|
| 961 |
0.42 2008-02-29 |
| 962 |
|
| 963 |
[ BUG FIXES ] |
| 964 |
|
| 965 |
- The 17set_return.t tests failed on leap days, like today. Reported |
| 966 |
by Duncan Ferguson. RT #33695. |
| 967 |
|
| 968 |
|
| 969 |
0.41 2007-09-10 |
| 970 |
|
| 971 |
[ BUG FIXES ] |
| 972 |
|
| 973 |
- The 13strftime.t test was failing when DateTime::Locale 0.35 was |
| 974 |
installed. The test has been adjusted and we now list DT::Locale |
| 975 |
0.35 as the minimum version. Reported by David Cantrell. |
| 976 |
|
| 977 |
|
| 978 |
0.40 2007-08-30 |
| 979 |
|
| 980 |
[ BUG FIXES ] |
| 981 |
|
| 982 |
- A custom formatter would be lost after a call to set() or |
| 983 |
truncate(). Reported by Kjell-Magne Øierud. RT #28728. |
| 984 |
|
| 985 |
- The truncate() method docs said it accepted "second" as a parameter, |
| 986 |
but it didn't actually do the right thing with it. Now it always |
| 987 |
truncates nanoseconds to 0 for any parameter it is passed. |
| 988 |
|
| 989 |
|
| 990 |
0.39 2007-07-17 |
| 991 |
|
| 992 |
[ BUG FIXES ] |
| 993 |
|
| 994 |
- Yet more changes to how infinity is handled and tested. This passes |
| 995 |
for me on 32-bit Win XP and 64-bit Linux, which is promising. Patch |
| 996 |
by Yitzchak Scott-Thoennes. RT #22392. |
| 997 |
|
| 998 |
|
| 999 |
0.38 2007-06-30 |
| 1000 |
|
| 1001 |
[ BUG FIXES ] |
| 1002 |
|
| 1003 |
- Require Test::Pod::Coverage 1.08 in pod-coverage.t, since we use |
| 1004 |
all_modules, which was only exported as of version 1.08. Reported by |
| 1005 |
MATSUNO Tokuhiro. Fixes RT #26594. |
| 1006 |
|
| 1007 |
- Fixed a bad link to the old FAQ location in the docs. Reported by |
| 1008 |
Ric Signes. Fixes RT #26846. |
| 1009 |
|
| 1010 |
[ ENHANCEMENTS ] |
| 1011 |
|
| 1012 |
- DateTime.pm now explicitly overloads string comparison. This was |
| 1013 |
done so that comparing a DateTime.pm object to a string returns |
| 1014 |
false, rather than throwing an exception. Reported by Chris |
| 1015 |
Dolan. Addresses RT #26085. |
| 1016 |
|
| 1017 |
|
| 1018 |
0.37 2007-03-30 |
| 1019 |
|
| 1020 |
[ BUG FIXES ] |
| 1021 |
|
| 1022 |
- Require DateTime::Locale 0.34, which fixes a problem that manifested |
| 1023 |
when thawing a DateTime.pm object. See |
| 1024 |
http://www.mail-archive.com/[email protected]/msg05633.html for some |
| 1025 |
discussion of this. |
| 1026 |
|
| 1027 |
- Added pod coverage tests, and added some POD for undocumented |
| 1028 |
methods as a result. |
| 1029 |
|
| 1030 |
[ ENHANCEMENTS ] |
| 1031 |
|
| 1032 |
- This distro is now GPG-signed, per RT #24776. |
| 1033 |
|
| 1034 |
|
| 1035 |
0.36 2007-01-18 |
| 1036 |
|
| 1037 |
[ BUG FIXES ] |
| 1038 |
|
| 1039 |
- For infinity, use 100 ** 1000 instead of 100 ** 100 ** 100. This may |
| 1040 |
fix the problems with infinity on some platforms (or may |
| 1041 |
not). Suggested by Bjorn Tackmann. See RT #17390, #19626, and |
| 1042 |
#22392. |
| 1043 |
|
| 1044 |
- Require DateTime::TimeZone 0.59, which includes a similar fix. |
| 1045 |
|
| 1046 |
|
| 1047 |
0.35 2006-10-22 |
| 1048 |
|
| 1049 |
[ ENHANCEMENTS ] |
| 1050 |
|
| 1051 |
- Added several new methods for getting locale-based data, era_abbr(), |
| 1052 |
era_name(), quarter_abbr(), and quarter_name(). The era() method |
| 1053 |
returns the same data as era_abbr(), but is deprecated. |
| 1054 |
|
| 1055 |
|
| 1056 |
0.34 2006-08-11 |
| 1057 |
|
| 1058 |
[ BUG FIXES ] |
| 1059 |
|
| 1060 |
- DateTime's code to fall back to the pure Perl implementation was |
| 1061 |
broken in most cases, making it fairly useless. Reported by Adam |
| 1062 |
Kennedy and Brendan Gibson. |
| 1063 |
|
| 1064 |
- Under Perl 5.6.2 (and presumably 5.6.x), some of the tests |
| 1065 |
mysteriously failed. I tracked this down to a weird interaction |
| 1066 |
between DateTime's string overloading and |
| 1067 |
Test::Builder->cmp_ok(). See RT 19626. |
| 1068 |
|
| 1069 |
|
| 1070 |
0.33 2006-08-09 (the "Asia/Kaohsiung" release) |
| 1071 |
|
| 1072 |
[ ENHANCEMENTS ] |
| 1073 |
|
| 1074 |
- Attempting to do an overloaded operation (add, subtract, compare) |
| 1075 |
with an inappropriate argument (like $dt + 1) gives a more useful |
| 1076 |
error message. |
| 1077 |
|
| 1078 |
[ BUG FIXES ] |
| 1079 |
|
| 1080 |
- The fixes in 0.30 for subtract_datetime() crossing a DST change had |
| 1081 |
a bug. When subtracting two dates, both occurring on a DST change |
| 1082 |
date, but where the dates did not cross the change, the answer was |
| 1083 |
off by an hour. Reported by Chris Prather. See RT 20697. |
| 1084 |
|
| 1085 |
- Borrowed a tweak from version.pm's Makefile.PL to make compiler |
| 1086 |
detection work with MSVC. |
| 1087 |
|
| 1088 |
|
| 1089 |
0.32 2006-07-24 |
| 1090 |
|
| 1091 |
[ BUG FIXES ] |
| 1092 |
|
| 1093 |
- Change how C compiler detection is done in the Makefile.PL so it |
| 1094 |
does not rely on having make on the system. The new way should work |
| 1095 |
on (most?) Unix and Win32 systems. Suggested by David Golden. See RT |
| 1096 |
18969. |
| 1097 |
|
| 1098 |
|
| 1099 |
0.31 2006-05-21 |
| 1100 |
|
| 1101 |
[ ENHANCEMENTS ] |
| 1102 |
|
| 1103 |
- Switched some uses of die() to Carp::croak(), where |
| 1104 |
appropriate. This should make error messages more useful in many |
| 1105 |
cases. Based on a suggestion by Max Maischein. See RT tickets 11692 |
| 1106 |
& 18728. |
| 1107 |
|
| 1108 |
[ BUG FIXES ] |
| 1109 |
|
| 1110 |
- Removed all uses of UNIVERSAL::isa and UNIVERSAL::can as functions. |
| 1111 |
|
| 1112 |
- Tweaked 20infinite.t test to give more useful output for some |
| 1113 |
failures, though it probably doesn't fix them. See RT 17390. |
| 1114 |
|
| 1115 |
|
| 1116 |
0.30 2005-12-22 |
| 1117 |
|
| 1118 |
[ ENHANCEMENTS ] |
| 1119 |
|
| 1120 |
- Expanded and rewrote the docs on date math to try to explain exactly |
| 1121 |
how DateTime.pm works, and in particular cover the problems DST |
| 1122 |
introduces to various types of date math. The docs now also include |
| 1123 |
some specific recommendations on getting sane results from datetime |
| 1124 |
math. |
| 1125 |
|
| 1126 |
- Added calendar_duration() and clock_duration() methods to |
| 1127 |
DateTime::Duration |
| 1128 |
|
| 1129 |
- Explicitly override the stringification method for |
| 1130 |
DateTime::Infinite objects. They now stringify as whatever the IEEE |
| 1131 |
infinity and negative infinity numbers stringify to on your |
| 1132 |
platform. On Linux this is "inf" and "-inf". CPAN RT #16632. |
| 1133 |
|
| 1134 |
[ BUG FIXES ] |
| 1135 |
|
| 1136 |
- delta_md() and delta_days() did not always return correct values |
| 1137 |
when crossing a DST change. |
| 1138 |
|
| 1139 |
- The pure Perl version of the code had a dependency ordering problem |
| 1140 |
where DateTime::LeapSecond depended on other pure Perl code that |
| 1141 |
wasn't yet available. I'm not sure how this ever worked. |
| 1142 |
|
| 1143 |
- Remove mentions of leap second on 1971-12-31 from the docs, because |
| 1144 |
there was no leap second that day. Reported by Mike Schilli. |
| 1145 |
|
| 1146 |
- If you added a second to a datetime that was on a leap second (like |
| 1147 |
2005-12-31T23:59:60) it got "stuck" and kept returning the same |
| 1148 |
datetime. Reported by Mike Schilli. |
| 1149 |
|
| 1150 |
- Changes to the tests in 20infinite.t may fix failures seen on some |
| 1151 |
platforms and with new versions of Test::More (0.62 was known to |
| 1152 |
cause failures) |
| 1153 |
|
| 1154 |
[ *** BACKWARDS INCOMPATIBILITIES *** ] |
| 1155 |
|
| 1156 |
- The subtract_datetime() method switched back to using the local |
| 1157 |
portion of the date _and_ time, but it now accounts for days with |
| 1158 |
DST changes specially. This produces results that fix the bugs that |
| 1159 |
were fixed by previous subtraction changes in 0.28 and 0.29, but |
| 1160 |
without introducing even more bugs. The overall result should be |
| 1161 |
sane, but please see the docs for details. |
| 1162 |
|
| 1163 |
|
| 1164 |
0.2901 2005-07-04 |
| 1165 |
|
| 1166 |
- A leap second for the end of 2005 was announced. |
| 1167 |
|
| 1168 |
|
| 1169 |
0.29 2005-06-03 |
| 1170 |
|
| 1171 |
[ *** BACKWARDS INCOMPATIBILITIES *** ] |
| 1172 |
|
| 1173 |
- When adding/subtracting a duration with months or days that crossed |
| 1174 |
a DST change, the result was based on the local time, not the UTC |
| 1175 |
time. For consistent results, it is necessary to use the UTC time |
| 1176 |
(but local date) for all date math. Reported by J. Alexander |
| 1177 |
Docauer. |
| 1178 |
|
| 1179 |
|
| 1180 |
0.28 2005-02-27 |
| 1181 |
|
| 1182 |
[ ENHANCEMENTS ] |
| 1183 |
|
| 1184 |
- The era names for the era() method are now retrieved from the |
| 1185 |
DateTime.pm object's associated locale. The old era() method, which |
| 1186 |
was hard-coded to use BCE and CE, is renamed secular_era(). The |
| 1187 |
christian_era() method remains the same. |
| 1188 |
|
| 1189 |
[ BUG FIXES ] |
| 1190 |
|
| 1191 |
- Fixed an embarrassing bug in the subtract_datetime() method. It was |
| 1192 |
subtracting local times, not UTC, which caused bugs when doing |
| 1193 |
subtraction across a DST change. This method is used to implement |
| 1194 |
subtraction overloading, so that was affected as well. Reported by |
| 1195 |
Mike Schilli. |
| 1196 |
|
| 1197 |
- The docs for the %U and %W strftime specifiers implied that these |
| 1198 |
should be zero-padded, but the code was not doing so. Reported by J |
| 1199 |
Docauer. |
| 1200 |
|
| 1201 |
|
| 1202 |
0.27 2005-01-31 |
| 1203 |
|
| 1204 |
[ ENHANCEMENTS ] |
| 1205 |
|
| 1206 |
- Added local_rd_values() method for the benefit of other modules like |
| 1207 |
DateTime::Event::Recurrence. |
| 1208 |
|
| 1209 |
|
| 1210 |
0.26 2005-01-27 |
| 1211 |
|
| 1212 |
[ BUG FIXES ] |
| 1213 |
|
| 1214 |
- The docs claimed that the delta_ms(), delta_md(), delta_days() |
| 1215 |
methods always returned a positive duration, but this was not true |
| 1216 |
for delta_md() or delta_days(). |
| 1217 |
|
| 1218 |
|
| 1219 |
0.25 2005-01-10 (the "new year, new bugs" release) |
| 1220 |
|
| 1221 |
[ BUG FIXES ] |
| 1222 |
|
| 1223 |
- Calling set_time_zone() for a datetime very close to a time zone |
| 1224 |
change died for many of the Olson time zones. |
| 1225 |
|
| 1226 |
- The docs for the from_object constructor said that by default, new |
| 1227 |
objects were in the UTC time zone, but in reality the default was |
| 1228 |
the floating time zone. The docs were changed to match the code. |
| 1229 |
Ticket 9278 on rt.cpan.org. |
| 1230 |
|
| 1231 |
|
| 1232 |
0.24 2004-12-10 (the "have I mentioned I hate leap seconds" release) |
| 1233 |
|
| 1234 |
[ BUG FIXES ] |
| 1235 |
|
| 1236 |
- Fixed even more bugs related to leap seconds and time zones. |
| 1237 |
Reported by Eugene van der Pijll. |
| 1238 |
|
| 1239 |
[ KNOWN BUGS ] |
| 1240 |
|
| 1241 |
- Offsets with a seconds portion (like "+00:00:30") act strangely near |
| 1242 |
leap seconds. Reported by Eugene van der Pijll. This will be fixed |
| 1243 |
in a future release. |
| 1244 |
|
| 1245 |
|
| 1246 |
0.23 2004-12-09 (the "oh how I hate leap seconds" release) |
| 1247 |
|
| 1248 |
[ ENHANCEMENTS ] |
| 1249 |
|
| 1250 |
- Added a number of convenience "set" methods: set_year, set_month, |
| 1251 |
set_day, set_hour, set_minute, set_second, set_nanosecond, and |
| 1252 |
set_locale. Suggested by Michael Schwern. |
| 1253 |
|
| 1254 |
- Added christian_era and year_with_christian_era methods. |
| 1255 |
|
| 1256 |
- Clarified that from_epoch(), today(), and now() all return objects |
| 1257 |
in the UTC time zone. Suggested by Sagar Shah and others. |
| 1258 |
|
| 1259 |
- Added formatter parameter to constructor, which allows per-object |
| 1260 |
stringification. Based on a patch from Daisuke Maki. |
| 1261 |
|
| 1262 |
[ BUG FIXES ] |
| 1263 |
|
| 1264 |
- Trying to serialize DateTime::Infinite objects with Storable blew |
| 1265 |
up. Patch by Daisuke Maki. |
| 1266 |
|
| 1267 |
- Require Test::More 0.34+, since I use a function introduced in that |
| 1268 |
version in the tests. Suggested by Jean Forget. |
| 1269 |
|
| 1270 |
- Fix a bug in strftime() which could cause weirdness with |
| 1271 |
pathological specifiers like "%%{day_name}%n". Reported by Jean |
| 1272 |
Forget. |
| 1273 |
|
| 1274 |
- Fixed a number of bugs related to leap seconds and time zones. |
| 1275 |
Reported by Eugene van der Pijll. |
| 1276 |
|
| 1277 |
|
| 1278 |
0.22 2004-07-23 |
| 1279 |
|
| 1280 |
[ *** BACKWARDS INCOMPATIBILITIES *** ] |
| 1281 |
|
| 1282 |
- The leap second table we were using mistakenly included a leap |
| 1283 |
second on December 31, 1971. This will break all versions of the |
| 1284 |
DateTime::Format::Epoch::TAI64 module up to and including version |
| 1285 |
0.06. Most users of DateTime.pm will not be affected. Patch by |
| 1286 |
Joshua Hoblitt. |
| 1287 |
|
| 1288 |
|
| 1289 |
0.2101 2004-06-10 |
| 1290 |
|
| 1291 |
[ BUG FIXES ] |
| 1292 |
|
| 1293 |
- There was a bug in the date math code that occurred if you tried to |
| 1294 |
add enough days, minutes or seconds to generate a datetime 10 years |
| 1295 |
in the future (or so). If the the DateTime object had a a time zone |
| 1296 |
with recurring DST changes, then the date math operation would cause |
| 1297 |
a fatal error "Invalid local time for date in time zone ...". |
| 1298 |
Reported by Dave Faraldo. |
| 1299 |
|
| 1300 |
|
| 1301 |
0.21 2004-03-28 (The "Another YAPC::Taipei release party release" release) |
| 1302 |
|
| 1303 |
[ *** BACKWARDS INCOMPATIBILITIES *** ] |
| 1304 |
|
| 1305 |
- When given mixed positive & negative arguments, DateTime::Duration |
| 1306 |
no longer forces all arguments to be negative. |
| 1307 |
|
| 1308 |
- For mixed durations, the is_positive, is_zero, and is_negative |
| 1309 |
methods all return false. |
| 1310 |
|
| 1311 |
- Brought back stringification overloading. As of version 1.06, |
| 1312 |
Devel::StackTrace will ignore this overloading when displaying a |
| 1313 |
trace. |
| 1314 |
|
| 1315 |
[ ENHANCEMENTS ] |
| 1316 |
|
| 1317 |
- Add a new in_units() method to DateTime::Duration. Patch by Andrew |
| 1318 |
Pimlott. |
| 1319 |
|
| 1320 |
- Rely on DateTime::TimeZone and DateTime::Locale having their own |
| 1321 |
Storable hooks, as opposed to handling them in DateTime.pm's own |
| 1322 |
Storable hooks. This should fix RT ticket #5542, reported by Dan |
| 1323 |
Rowles (I hope). |
| 1324 |
|
| 1325 |
- More docs on how date math is done. See the new section "The |
| 1326 |
Results of Date Math". |
| 1327 |
|
| 1328 |
[ BUG FIXES ] |
| 1329 |
|
| 1330 |
- DateTime::Duration's is_positive, is_zero, and is_negative methods |
| 1331 |
could incorrectly return true if a duration contained mixed positive |
| 1332 |
and negative units. |
| 1333 |
|
| 1334 |
- Better normalization of nanoseconds in DateTime::Duration. Patch by |
| 1335 |
Andrew Pimlott. |
| 1336 |
|
| 1337 |
|
| 1338 |
0.20 2004-02-12 |
| 1339 |
|
| 1340 |
[ IMPROVEMENTS ] |
| 1341 |
|
| 1342 |
- Tweaked the "How Date Math is Done" section in DateTime.pm to |
| 1343 |
provide some more explicit examples. |
| 1344 |
|
| 1345 |
[ BUG FIXES ] |
| 1346 |
|
| 1347 |
- If seconds are not negative, DateTime::Duration will try to keep |
| 1348 |
nanoseconds >= 0 when normalizing them to seconds, as long as this |
| 1349 |
doesn't make seconds become negative. Suggested by Andrew Pimlott. |
| 1350 |
|
| 1351 |
- In the datetime subtraction code, there was an off-by-one error in |
| 1352 |
the code to determine if one of the datetimes occurred in a minute |
| 1353 |
containing a leap second. This led to the result of the subtraction |
| 1354 |
being off by one second. Patch by Andrew Pimlott. |
| 1355 |
|
| 1356 |
- A duration's nanoseconds weren't normalized after multiplication. |
| 1357 |
Patch by Andrew Pimlott. |
| 1358 |
|
| 1359 |
|
| 1360 |
0.1901 2004-01-07 (the "people care about ancient history?" release) |
| 1361 |
|
| 1362 |
[ BUG FIXES ] |
| 1363 |
|
| 1364 |
- The day of week was totally busted for dates before 0000-12-25. |
| 1365 |
Reported by Flavio Glock. |
| 1366 |
|
| 1367 |
|
| 1368 |
0.19 2003-12-01 (the "never look before a leap second" release) |
| 1369 |
|
| 1370 |
[ IMPROVEMENTS ] |
| 1371 |
|
| 1372 |
- DateTime::Duration now provides a compare() class method. |
| 1373 |
|
| 1374 |
- DateTime::Duration now overloads comparison to throw an exception, |
| 1375 |
because comparison requires a base DateTime object. Note that |
| 1376 |
previous versions of DateTime::Duration _did not_ overload |
| 1377 |
comparison, so if you were comparing them, you were just comparing |
| 1378 |
the value of the object references. Thanks to Rick Measham, Jon |
| 1379 |
Swartz, and Max Maischein for contributing to the discussion on |
| 1380 |
[email protected] about how to implement this feature. |
| 1381 |
|
| 1382 |
- Added DateTime::Duration->multiply to complement multiplication |
| 1383 |
overloading. |
| 1384 |
|
| 1385 |
- Added a leap_seconds method. |
| 1386 |
|
| 1387 |
- Added a section to the docs about floating datetimes. |
| 1388 |
|
| 1389 |
- DateTime::LeapSecond no longer contains code copied from |
| 1390 |
DateTime.pm, instead it just uses DateTime.pm directly. Patch by |
| 1391 |
Joshua Hoblitt. |
| 1392 |
|
| 1393 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1394 |
|
| 1395 |
- DateTime::LeapSecond's leap_seconds() function now returns the |
| 1396 |
number of leap seconds that have occurred, as opposed to the |
| 1397 |
difference between TAI and UTC for a given Rata Die day, which is |
| 1398 |
what it was returning previously. This means that the values it |
| 1399 |
returns are 9 second less than the previous version. This does not |
| 1400 |
affect DateTime.pm because it never looke at the actual value, just |
| 1401 |
the difference between two leap second values, which remains the |
| 1402 |
same. |
| 1403 |
|
| 1404 |
|
| 1405 |
0.18 2003-10-26 (the "delta, delta, delta, can I help ya, help ya, help ya?" release) |
| 1406 |
|
| 1407 |
[ IMPROVEMENTS ] |
| 1408 |
|
| 1409 |
- Added several new methods for calculating the difference between two |
| 1410 |
datetime objects. These are delta_md(), delta_days(), and |
| 1411 |
delta_ms(). Each of these methods returns the difference as a |
| 1412 |
duration containing just certain units. |
| 1413 |
|
| 1414 |
[ BUG FIXES ] |
| 1415 |
|
| 1416 |
- Require Pod::Man 1.14+, so that head3/head4 markup doesn't cause |
| 1417 |
installation to die. |
| 1418 |
|
| 1419 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1420 |
|
| 1421 |
- The local_rd_as_seconds method is deprecated, as it doesn't really |
| 1422 |
serve much purpose. |
| 1423 |
|
| 1424 |
|
| 1425 |
0.1705 2003-10-07 |
| 1426 |
|
| 1427 |
[ BUG FIXES ] |
| 1428 |
|
| 1429 |
- Subtracting one datetime from another was still broken, and my fix |
| 1430 |
in 0.1704 broke many other subtractions. Reported by Pierre Denis |
| 1431 |
again. Many thanks to Pierre for paying attention. |
| 1432 |
|
| 1433 |
- Subtracting datetimes where the subtraction crossed a leap second |
| 1434 |
was also broken. |
| 1435 |
|
| 1436 |
|
| 1437 |
0.1704 2003-10-07 |
| 1438 |
|
| 1439 |
[ IMPROVEMENTS ] |
| 1440 |
|
| 1441 |
- Documented the behavior of strftime() when given an invalid format. |
| 1442 |
|
| 1443 |
|
| 1444 |
[ BUG FIXES ] |
| 1445 |
|
| 1446 |
- The DateTime::Duration synopsis showed a sign() method that doesn't |
| 1447 |
exist, so I removed it from the synopsis. Reported by Flavio Glock. |
| 1448 |
|
| 1449 |
- Subtracting one datetime from another was seriously broken. The |
| 1450 |
values for days & weeks were wrong in many cases. Reported by |
| 1451 |
Pierre Denis. |
| 1452 |
|
| 1453 |
|
| 1454 |
0.1703 2003-09-22 |
| 1455 |
|
| 1456 |
|
| 1457 |
[ BUG FIXES ] |
| 1458 |
|
| 1459 |
- truncate( to => 'week' ) caused a fatal error when the beginning of |
| 1460 |
the week was in the previous month. Reported by R. Mathews |
| 1461 |
(rt.cpan.org #3843). |
| 1462 |
|
| 1463 |
|
| 1464 |
0.1702 2003-09-18 |
| 1465 |
|
| 1466 |
[ IMPROVEMENTS ] |
| 1467 |
|
| 1468 |
- Added truncate( to => 'week' ). Suggested by Flavio Glock. |
| 1469 |
|
| 1470 |
|
| 1471 |
0.1701 2003-09-15 |
| 1472 |
|
| 1473 |
[ BUG FIXES ] |
| 1474 |
|
| 1475 |
- If from_epoch was given a fractional epoch with a floating point |
| 1476 |
value with more than 9 digits after the decimal point, the object |
| 1477 |
ended up containing a floating point number of nanoseconds. We now |
| 1478 |
truncate this number to an integer. Fixed by Joshua Hoblitt. |
| 1479 |
|
| 1480 |
- The %V strftime specifier was documented, but not implemented. |
| 1481 |
Reported by Joshua Hoblitt. |
| 1482 |
|
| 1483 |
- Test #56 in 03components.t would die with "Invalid offset: -124" |
| 1484 |
when run with DateTime::TimeZone 0.2502+. Next time, I'll read my |
| 1485 |
own docs ;) |
| 1486 |
|
| 1487 |
|
| 1488 |
0.17 2003-08-29 (the "math is hard" release) |
| 1489 |
|
| 1490 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1491 |
|
| 1492 |
- The default end_of_month mode for negative durations is now |
| 1493 |
"preserve". This makes more sense, as the previous default meant |
| 1494 |
that the following code: |
| 1495 |
|
| 1496 |
print DateTime->new( year => 2003, month => 5, day => 31 ) |
| 1497 |
->subtract( months => 1 )->ymd; |
| 1498 |
|
| 1499 |
printed "2003-05-01" as opposed to "2003-04-30". Thanks to Thomas |
| 1500 |
Klausner for starting a discussion on this problem. |
| 1501 |
|
| 1502 |
- The subtract_datetime method now returns different results, as does |
| 1503 |
subtraction overloading when both sides of the subtraction are |
| 1504 |
DateTime objects. |
| 1505 |
|
| 1506 |
The subtract_datetime_absolute method returns results similar to |
| 1507 |
what was previously returned from subtract_datetime. |
| 1508 |
|
| 1509 |
Thanks to Matthew McGillis for bringing this up, and Joshua Hoblitt |
| 1510 |
and Eugene van der Pijll for contributing to the ensuing discussion. |
| 1511 |
|
| 1512 |
[ IMPROVEMENTS ] |
| 1513 |
|
| 1514 |
- DateTime.pm compare() method is now documented to work with any |
| 1515 |
other calendar class that provides a utc_rd_values() method. |
| 1516 |
|
| 1517 |
- Added the subtract_datetime_absolute method. See the docs for |
| 1518 |
details. |
| 1519 |
|
| 1520 |
- Documented the inverse() method in DateTime::Duration. |
| 1521 |
|
| 1522 |
|
| 1523 |
0.1601 2003-08-07 |
| 1524 |
|
| 1525 |
[ BUG FIXES ] |
| 1526 |
|
| 1527 |
- On platforms like Win32, where we can't find a finite() or |
| 1528 |
isfinite() function/macro, the DateTime::LeapSecond code wasn't |
| 1529 |
being loaded, so many tests failed. Reported by Ron Hill. |
| 1530 |
|
| 1531 |
|
| 1532 |
0.16 2003-08-06 |
| 1533 |
|
| 1534 |
[ IMPROVEMENTS ] |
| 1535 |
|
| 1536 |
- The XS code now implements leap second-related calculations. |
| 1537 |
However, this is only used on platforms where we can find a usable |
| 1538 |
finite() or isfinite() function/macro, so it isn't used on Win32. |
| 1539 |
|
| 1540 |
- This distro has now borged the DateTime::LeapSecond module. It is |
| 1541 |
only loaded when the XS leap second code cannot be used. |
| 1542 |
|
| 1543 |
- Other miscellaneous performance improvements. |
| 1544 |
|
| 1545 |
|
| 1546 |
0.1503 2003-07-31 |
| 1547 |
|
| 1548 |
[ BUG FIXES ] |
| 1549 |
|
| 1550 |
- Adding a duration with delta months to an infinite DateTime was |
| 1551 |
quite broken. Reported by Eugene van der Pijll. |
| 1552 |
|
| 1553 |
|
| 1554 |
0.1502 2003-07-31 |
| 1555 |
|
| 1556 |
[ BUG FIXES ] |
| 1557 |
|
| 1558 |
- XSLoader wasn't the problem on Solaris, so it's back. |
| 1559 |
|
| 1560 |
- Now loading the XS version of DateTime.pm is wrapped in an eval |
| 1561 |
block. If it fails with an error about the object version not |
| 1562 |
matching, the pure Perl version is loaded instead. This should fix |
| 1563 |
Solaris. Thanks to Joshua Hoblitt for identifying this bug. |
| 1564 |
|
| 1565 |
|
| 1566 |
0.1501 2003-07-30 |
| 1567 |
|
| 1568 |
[ BUG FIXES ] |
| 1569 |
|
| 1570 |
- Fixed the from_object() method to set the returned object's time |
| 1571 |
zone to the floating time zone if the source object did not have a |
| 1572 |
time zone, as specified in the docs. Previously, the returned |
| 1573 |
object's time zone was UTC. Patch by Eugene van der Pjill. |
| 1574 |
|
| 1575 |
- For this release, at least, the module always uses Dynaloader. This |
| 1576 |
is in order to see if this fixes a problem on Solaris where the |
| 1577 |
install library version of the DateTime .so file is loaded instead |
| 1578 |
of the newly compiled version in the blib directory. |
| 1579 |
|
| 1580 |
|
| 1581 |
0.15 2003-07-29 |
| 1582 |
|
| 1583 |
[ IMPROVEMENTS ] |
| 1584 |
|
| 1585 |
- The utc_rd_values() method now returns nanoseconds in addition to |
| 1586 |
Rata Die days and seconds. Based on a patch by Joshua Hoblitt. |
| 1587 |
|
| 1588 |
- The from_object() method expects objects to return the same values |
| 1589 |
from their utc_rd_values() methods. Based on a patch by Joshua |
| 1590 |
Hoblitt. |
| 1591 |
|
| 1592 |
[ BUG FIXES ] |
| 1593 |
|
| 1594 |
- Fixed a bug in the pure Perl version of _normalize_tai_seconds that |
| 1595 |
caused very weird results from datetime math. This version may be |
| 1596 |
used on platforms where the XS code compiles, so it can affect quite |
| 1597 |
a number of systems. Reported by Dan Sully. |
| 1598 |
|
| 1599 |
|
| 1600 |
0.1402 2003-07-24 |
| 1601 |
|
| 1602 |
[ BUG FIXES ] |
| 1603 |
|
| 1604 |
- Fix DefaultLocale method, which didn't work at all. Reported by |
| 1605 |
Serge Leger. |
| 1606 |
|
| 1607 |
|
| 1608 |
0.1401 2003-07-24 |
| 1609 |
|
| 1610 |
[ BUG FIXES ] |
| 1611 |
|
| 1612 |
- Fix a test failure in 13strftime.t under Perl 5.6.1 (and probably |
| 1613 |
5.6.0). |
| 1614 |
|
| 1615 |
|
| 1616 |
0.14 2003-07-23 |
| 1617 |
|
| 1618 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1619 |
|
| 1620 |
- The DateTime::Language modules are no longer being developed or |
| 1621 |
distributed as part of the DateTime.pm distribution. |
| 1622 |
|
| 1623 |
Because of this, all "language" parameters should now be replaced by |
| 1624 |
"locale" parameter. The "language" parameter is deprecated and will |
| 1625 |
be removed in a future release. |
| 1626 |
|
| 1627 |
Also note that locales should be specified via ISO codes, not names |
| 1628 |
like "English". The old DateTime::Language names will continue to |
| 1629 |
work indefinitely, but they load DateTime::Locale objects instead. |
| 1630 |
|
| 1631 |
Locale-specific data will be returned in utf8 when necessary. |
| 1632 |
|
| 1633 |
- Similarly, the "language" and "DefaultLanguage" methods are now |
| 1634 |
deprecated in favor of "locale" and "DefaultLocale". |
| 1635 |
|
| 1636 |
|
| 1637 |
[ IMPROVEMENTS ] |
| 1638 |
|
| 1639 |
- DateTime::Duration now returns the object from mutator methods, in |
| 1640 |
order to make method chaining possible. Suggested by Ben Bennett. |
| 1641 |
|
| 1642 |
- If the value for second given to new() is 60 or 61, then it must be |
| 1643 |
a valid leap second. |
| 1644 |
|
| 1645 |
- DateTime now uses DateTime::Locale for localization, which allows |
| 1646 |
for real language and territory based localization. The locale code |
| 1647 |
is generated from the ICU project's data, and is much more complete |
| 1648 |
than the DateTime::Language modules. However, we are losing |
| 1649 |
(hopefully only temporarily) support for the various African |
| 1650 |
languages contributed by Daniel Yacob. Support for those languages |
| 1651 |
should return in a future release of DateTime::Locale. |
| 1652 |
|
| 1653 |
- Support for the '%c', '%x', and '%X' strftime format specifiers, |
| 1654 |
which output localized date and time strings. |
| 1655 |
|
| 1656 |
- Added the time_zone_long_name method, primarily for the benefit of |
| 1657 |
DateTime::Locale. |
| 1658 |
|
| 1659 |
- Added a note to the DateTime::Infinite docs warning that it may not |
| 1660 |
work well on Win32. |
| 1661 |
|
| 1662 |
[ BUG FIXES ] |
| 1663 |
|
| 1664 |
- DateTime::Duration was not consistent in how it handled mixed |
| 1665 |
positive and negative constructor parameters. Reported by Ben |
| 1666 |
Bennett. |
| 1667 |
|
| 1668 |
|
| 1669 |
0.13 2003-05-05 |
| 1670 |
|
| 1671 |
[ IMPROVEMENTS ] |
| 1672 |
|
| 1673 |
- DateTime now does more validation of parameters given to |
| 1674 |
constructors and to the set() method, so bogus values like a month |
| 1675 |
of 13 are a fatal error. |
| 1676 |
|
| 1677 |
- Added a new constructor, from_day_of_year(). |
| 1678 |
|
| 1679 |
- Added a number of new "get" methods, including era, year_with_era, |
| 1680 |
hour_1, hour_12, hour_12_0, weekday_of_month, and week_of_month. |
| 1681 |
Based in part on a patch from Rick Measham. |
| 1682 |
|
| 1683 |
- Now any object method can be called in strftime format by using |
| 1684 |
"%{method}" as a format specifier. Patch from Rick Measham |
| 1685 |
|
| 1686 |
- Added an is_zero method to DateTime::Duration, for objects of zero |
| 1687 |
length. |
| 1688 |
|
| 1689 |
- DateTime->from_epoch will now accept a floating point epoch and turn |
| 1690 |
the post-decimal portion into nanoseconds. This was done in order |
| 1691 |
to interface more accurately with Time::HiRes. |
| 1692 |
|
| 1693 |
- Added a DateTime->hires_epoch method that returns a floating point |
| 1694 |
value for epoch, also for compatibility with Time::HiRes. |
| 1695 |
|
| 1696 |
- DateTime.pm now implements Storable hooks to reduce the size of |
| 1697 |
serialized DateTime objects. In particular, the contained time zone |
| 1698 |
object is not serialized along with the DateTime object. |
| 1699 |
|
| 1700 |
- It is now possible to create arbitrary DateTime::Language subclasses |
| 1701 |
in any namespace. |
| 1702 |
|
| 1703 |
[ BUG FIXES ] |
| 1704 |
|
| 1705 |
- "Fixed" 20infinite.t failures on Windows with 2 icky hacks. The |
| 1706 |
first simply doesn't compile the XS code that deals with infinite |
| 1707 |
numbers on Win32, so the pure Perl version is used instead. |
| 1708 |
However, the rest of the XS code is still compiled on Win32. The |
| 1709 |
other hack is to simply skip a failing test in 20infinite.t on |
| 1710 |
Win32. Hopefully, this will eventually be fixed but given that this |
| 1711 |
is not core functionality for most users, I'd rather get this |
| 1712 |
release out the door now. |
| 1713 |
|
| 1714 |
- Fix epoch() method to work properly with dates greater than 50 years |
| 1715 |
ago. Apparently, if Time::Local is given a year less than 100, it |
| 1716 |
tries to guess the century, and it doesn't do this by simply adding |
| 1717 |
1900. Numbers less than 53 (for the year 2003) are treated as being |
| 1718 |
in the current century. Ugh. |
| 1719 |
|
| 1720 |
- Fixed compilation on HPUX. Patch from Dan Sully. |
| 1721 |
|
| 1722 |
- The last_day_of_month() method did not accept a nanosecond |
| 1723 |
parameter. |
| 1724 |
|
| 1725 |
- A DT::Duration object created with just nanoseconds was always |
| 1726 |
positive, regardless of the value given for nanoseconds. |
| 1727 |
|
| 1728 |
- Fixed a serious bug when subtracting one datetime from another that |
| 1729 |
could cause the result to be off by up to a second, and negative |
| 1730 |
when it should be positive. This was caused by the introduction of |
| 1731 |
nanoseconds in 0.10. |
| 1732 |
|
| 1733 |
- A zero length duration reported itself as positive when it should be |
| 1734 |
neither positive nor negative. |
| 1735 |
|
| 1736 |
- In Perl 5.6.1/Red Hat Linux 7.2, multiplying a variable with value |
| 1737 |
zero by -1 gives negative-zero, which breaks tests. |
| 1738 |
|
| 1739 |
perl -e ' $x=0; $x*=-1; print $x ' |
| 1740 |
|
| 1741 |
-0 |
| 1742 |
|
| 1743 |
Patch by Flavio Glock. |
| 1744 |
|
| 1745 |
- Comparing a DateTime::Infinite object to a regular datetime could |
| 1746 |
cause a fatal error. Reported by John Peacock. |
| 1747 |
|
| 1748 |
- Fixed a failure in the 04epoch.t tests on Win32. Negative epoch |
| 1749 |
values don't work on Win32. |
| 1750 |
|
| 1751 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1752 |
|
| 1753 |
- The "Portugese" language module has been renamed to "Portuguese". |
| 1754 |
I'm so embarrassed! Reported by Richard Evans. |
| 1755 |
|
| 1756 |
- DateTime::Infinite objects no longer die if "set" methods are |
| 1757 |
called. Instead, these methods are now no-op methods that simply |
| 1758 |
return the original object. This makes these objects more usable |
| 1759 |
when mixed with regular datetime objects. |
| 1760 |
|
| 1761 |
- Removed the fractional_second constructor parameter. It was |
| 1762 |
incorrectly documented anyway. The fractional_second _accessor_ is |
| 1763 |
still there. |
| 1764 |
|
| 1765 |
- DateTime::Duration objects of zero length no longer return true for |
| 1766 |
is_positive. |
| 1767 |
|
| 1768 |
|
| 1769 |
0.12 2003-05-05 |
| 1770 |
|
| 1771 |
[ BUG FIXES ] |
| 1772 |
|
| 1773 |
- Make sure tests always run with warnings on. |
| 1774 |
|
| 1775 |
- Fix line that had "$] >= 5.6.0" to be "$] >= 5.006". This caused |
| 1776 |
warnings and was just wrong. Reported by John Siracusa. |
| 1777 |
|
| 1778 |
- Quiet warnings from pure Perl implementation. |
| 1779 |
|
| 1780 |
- Quiet warnings from language modules with Unicode when used with |
| 1781 |
Perl 5.00503. |
| 1782 |
|
| 1783 |
|
| 1784 |
0.11 2003-05-03 |
| 1785 |
|
| 1786 |
[ IMPROVEMENTS ] |
| 1787 |
|
| 1788 |
- Moved a little bit of the leap second code to XS, so DateTime.pm may |
| 1789 |
be a tiny bit faster. |
| 1790 |
|
| 1791 |
- Added name() method to DateTime::Language. Suggested by Rick |
| 1792 |
Measham. |
| 1793 |
|
| 1794 |
- Use XSLoader with Perl 5.6.0+, which according to ancient |
| 1795 |
perl5-porters discussions saves some memory. |
| 1796 |
|
| 1797 |
- Added infinite DateTime objects. See the DateTime::Infinite docs |
| 1798 |
for details. |
| 1799 |
|
| 1800 |
[ BUG FIXES ] |
| 1801 |
|
| 1802 |
- The %I and %l strftime formats were formatting hours as 0-11, not |
| 1803 |
1-12 as documented. Patch by Simon Newton. |
| 1804 |
|
| 1805 |
- A DateTime::Duration object created only with weeks as a parameter |
| 1806 |
always was positive. Fixed by Flavio Glock. |
| 1807 |
|
| 1808 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1809 |
|
| 1810 |
- Because of changes in DateTime::TimeZone 0.13, which this version |
| 1811 |
now requires, when a local time is ambiguous, the latest UTC time is |
| 1812 |
used, rather than the earliest, as was done previously. |
| 1813 |
|
| 1814 |
- The Brazilian language module has been renamed as Portugese. |
| 1815 |
|
| 1816 |
- Removed DateTime::Duration->compare (which I forgot to document |
| 1817 |
anyway ;) and comparison overloading for DT::Duration. There's no |
| 1818 |
meaningful way to compare 60 days to 2 months. |
| 1819 |
|
| 1820 |
|
| 1821 |
0.10 2003-04-19 (the "I'm sure the new regime will be spiffy" release) |
| 1822 |
|
| 1823 |
[IMPROVEMENTS] |
| 1824 |
|
| 1825 |
- Added Tigre language module. Contributed by Daniel Yacob. |
| 1826 |
|
| 1827 |
- DateTime::Duration objects now overload multiplication. Implemented |
| 1828 |
by Flavio Glock. |
| 1829 |
|
| 1830 |
- Added support for nanoseconds in DateTime.pm and DateTime::Duration. |
| 1831 |
Implemented by Flavio Glock. |
| 1832 |
|
| 1833 |
- Added complete support for leap seconds (through use of |
| 1834 |
DateTime::LeapSecond). Mostly implemented by Flavio Glock. |
| 1835 |
|
| 1836 |
[ BACKWARDS INCOMPATIBILITIES ] |
| 1837 |
|
| 1838 |
- Because of the addition of leap seconds to the mix, we are now |
| 1839 |
forced to handle seconds separately from minutes when doing date |
| 1840 |
math. This means that several aspects of the DateTime::Duration API |
| 1841 |
have changed. Specifically: |
| 1842 |
|
| 1843 |
-- There is now an additional delta_minutes() method. |
| 1844 |
-- The hash returned by the deltas() method now includes a "minutes" key. |
| 1845 |
-- The seconds delta may be greater than 59. |
| 1846 |
-- The seconds() method may return a number greater than 59. |
| 1847 |
|
| 1848 |
|
| 1849 |
0.09 2003-04-05 (the "liberation through violence" release) |
| 1850 |
|
| 1851 |
[IMPROVEMENTS] |
| 1852 |
|
| 1853 |
- As requested by numerous people, there is now a pure Perl |
| 1854 |
implementation of DateTime.pm included with this distribution. If |
| 1855 |
you don't have a C compiler it will be used instead of the XS |
| 1856 |
implementation. |
| 1857 |
|
| 1858 |
- Document how floating time zones are handling in comparisons, and |
| 1859 |
add the compare_ignore_floating method. Based on a patch from |
| 1860 |
Eugene van der Pijll. |
| 1861 |
|
| 1862 |
- Allow from_epoch(), now(), and today() to accept a time_zone |
| 1863 |
parameter. Based on suggestions from Tim Bunce and Joshua Hoblitt. |
| 1864 |
|
| 1865 |
- Allow extraction of AM/PM string list from DateTime::Language classes. |
| 1866 |
|
| 1867 |
- Added quarter() and day_of_quarter() methods. Based on a patch from |
| 1868 |
Tim Allwine. |
| 1869 |
|
| 1870 |
[BUG FIXES] |
| 1871 |
|
| 1872 |
- If a datetime had the floating timezone and then set_time_zone was |
| 1873 |
used to set it to something else, the internal UTC time of the |
| 1874 |
object was not changed, meaning that its offset could be calculated |
| 1875 |
incorrectly. Patch by Eugene van der Pijll. |
| 1876 |
|
| 1877 |
- If datetime math was done with hours, minutes, or seconds, the |
| 1878 |
return value of ->epoch would be wrong after this. Based on report |
| 1879 |
and patch from Iain Truskett. |
| 1880 |
|
| 1881 |
|
| 1882 |
0.08 2003-03-21 (the "anti-war" release) |
| 1883 |
|
| 1884 |
[IMPROVEMENTS] |
| 1885 |
|
| 1886 |
- All set/modify methods now return the datetime object, in order to |
| 1887 |
make method chaining possible. Patch by Iain Truskett. |
| 1888 |
|
| 1889 |
- The _greg2rd and _rd2greg methods have been renamed _ymd2rd and |
| 1890 |
_rd2ymd, so as to make them look more normal when used in |
| 1891 |
subclasses. |
| 1892 |
|
| 1893 |
- Added a truncate() method. Suggested by Flavio Glock. |
| 1894 |
|
| 1895 |
- Added Swedish language module. Contributed by Christian Hansen. |
| 1896 |
|
| 1897 |
- Added language modules for Afar, Amharic, Gedeo, Oromo, Sidama, |
| 1898 |
Somali, and Tigrinya (Eritrean and Ethiopian), all courtesy of |
| 1899 |
Daniel Yacob. |
| 1900 |
|
| 1901 |
- Various doc improvements, including a section on invalid local |
| 1902 |
times. |
| 1903 |
|
| 1904 |
[BUG FIXES] |
| 1905 |
|
| 1906 |
- The week() method was wrong for many dates. Reported by Christian |
| 1907 |
Hansen. |
| 1908 |
|
| 1909 |
- The last_day_of_month() method had the DateTime class hard-coded in |
| 1910 |
it. Reported by Eugene van der Pijll. |
| 1911 |
|
| 1912 |
- Fixed a bug when comparing a datetime object to infinity (or |
| 1913 |
negative infinity). Fixed by Flavio Glock. |
| 1914 |
|
| 1915 |
- Date math has been fixed so that it affects the _local_ times. This |
| 1916 |
means that sometimes 1 day is not equal to 24 hours when the |
| 1917 |
addition/subtraction crosses over a Daylight Saving Time change. |
| 1918 |
See the "How Date Math is Done" section of the docs for more |
| 1919 |
details. |
| 1920 |
|
| 1921 |
[BACKWARDS INCOMPATIBILITIES] |
| 1922 |
|
| 1923 |
- Objects constructed via the new() method now have a "floating" time |
| 1924 |
zone by default, instead of using the "local" time zone. This is |
| 1925 |
just simpler to deal with, and for code where time zones are |
| 1926 |
unimportant, this is the most appropriate default. |
| 1927 |
|
| 1928 |
|
| 1929 |
0.07 2003-02-26 |
| 1930 |
|
| 1931 |
[IMPROVEMENTS] |
| 1932 |
|
| 1933 |
- Added a small hack to the compare() method so that this module can |
| 1934 |
be used with Set::Infinite. |
| 1935 |
|
| 1936 |
- Changed compare so that it can be used to compare two objects from |
| 1937 |
different calendars that conform to the DateTime::Calendar |
| 1938 |
interface. |
| 1939 |
|
| 1940 |
- Added explanation of exactly what calendar this module represents |
| 1941 |
("proleptic Gregorian calendar") to docs. |
| 1942 |
|
| 1943 |
- Added a Spanish language DateTime::Language subclass. Implemented |
| 1944 |
by Flavio S. Glock. |
| 1945 |
|
| 1946 |
- Added support for specifying a language by ISO code ("en" or |
| 1947 |
"pt-br") as well as the subclass name. Based on a patch from Eric |
| 1948 |
Cholet. |
| 1949 |
|
| 1950 |
- Revamped the externally visible DateTime::Language API. |
| 1951 |
|
| 1952 |
- Objects created via the from_object() method are set to the time |
| 1953 |
zone of the object from which they were created, if it has one, or |
| 1954 |
UTC otherwise. |
| 1955 |
|
| 1956 |
[BUG FIXES] |
| 1957 |
|
| 1958 |
- The from_object() method was broken because it retrieved a UTC |
| 1959 |
datetime from the object passed in, and then created a new DateTime |
| 1960 |
object using that UTC time as a _local_ time. |
| 1961 |
|
| 1962 |
[BACKWARDS INCOMPATIBILITIES] |
| 1963 |
|
| 1964 |
- Removed stringification overloading. Having this in place made it |
| 1965 |
impossible to create a stack trace in much of the time zone code. |
| 1966 |
|
| 1967 |
- Renamed the DateTime::Language->subclasses method as languages. |
| 1968 |
|
| 1969 |
- It is no longer possible to directly instantiate a |
| 1970 |
DateTime::Language subclass, instead use: |
| 1971 |
|
| 1972 |
my $en = DateTime::Language->new( language => 'English' ); |
| 1973 |
|
| 1974 |
- The from_object() method no longer accepts a "time_zone" parameter. |
| 1975 |
|
| 1976 |
|
| 1977 |
0.06 2003-02-16 |
| 1978 |
|
| 1979 |
- The docs said that there was no year 0 in the Gregorian calendar, |
| 1980 |
but that was wrong. The year() method can now return 0. The |
| 1981 |
year_0() method has been removed. |
| 1982 |
|
| 1983 |
- Added jd() and mjd() methods. |
| 1984 |
|
| 1985 |
- Re-implemented some of the core code in XS for speed. |
| 1986 |
|
| 1987 |
0.05 2003-02-13 |
| 1988 |
|
| 1989 |
- Fix handling and reporting of epoch times. Epoch times are, by |
| 1990 |
definition, UTC times, so any time created from an epoch should |
| 1991 |
always have its time zone set to "UTC". This can be changed after |
| 1992 |
the object is created. Similarly, the value returned by the epoch() |
| 1993 |
method needs to be based on the object's UTC time, not it's local |
| 1994 |
time. Bug reported by Kellan Elliott-McCrea. |
| 1995 |
|
| 1996 |
- Change year_0 so that -1 BCE is 0, not 1 CE. This corresponds to |
| 1997 |
astronomical years. |
| 1998 |
|
| 1999 |
- Change ymd, dmy, mdy, and iso8601 to use Gregorian years (..., -2, |
| 2000 |
-1, 1, 2, ... ) as opposed to astronomical years. Also make sure |
| 2001 |
all negative years are formatted as 4 digits. |
| 2002 |
|
| 2003 |
0.04 2003-02-10 |
| 2004 |
|
| 2005 |
- Explicitly set time zone for objects created during tests. |
| 2006 |
|
| 2007 |
0.03 2003-02-09 |
| 2008 |
|
| 2009 |
- Giving a language parameter to a constructor method didn't load the |
| 2010 |
language class. |
| 2011 |
|
| 2012 |
- Test that all language classes are at least loadable. |
| 2013 |
|
| 2014 |
- Added Brazilian (not quite a language ;) and Danish, again stolen |
| 2015 |
from Graham Barr's TimeDate suite. |
| 2016 |
|
| 2017 |
- Added is_dst method. Requested by Matt Sergeant. |
| 2018 |
|
| 2019 |
0.02 2003-02-09 |
| 2020 |
|
| 2021 |
- Fixed a bug in calculating day of year in leap years (it was +1 off |
| 2022 |
starting in February). Reported by Matt Sergeant. |
| 2023 |
|
| 2024 |
- Subtracting one datetime from another was broken in most cases. |
| 2025 |
Improved the tests for this quite a bit. Reported by Eric Cholet. |
| 2026 |
|
| 2027 |
- Made the version number a non-dev-release so it's visible when |
| 2028 |
CPAN.pm tries to install it as a prereq for something else. |
| 2029 |
|
| 2030 |
0.01_00 2003-02-04 |
| 2031 |
|
| 2032 |
- The first alpha release. This module draws on Date::ICal for much |
| 2033 |
of its internals, so it has more history than a normal alpha |
| 2034 |
release. |