Releases: cakephp/chronos
Releases · cakephp/chronos
Chronos 3.3.1
Chronos 3.3.0
What's Changed
- Split out toQuarterRange() for cleaner return API. by @dereuromark in #479
- Add toRfc7231String() helper by @othercorey in #484
Full Changelog: 3.2.0...3.3.0
Chronos 2.5.2
What's Changed
- Fix createFromTimestamp() deprecation message by @othercorey in #485
Full Changelog: 2.5.1...2.5.2
Chronos 3.2.0
What's Changed
- Add ChronosPeriod which returns Chronos instances from DatePeriod by @othercorey in #472
- Add ChronosDatePeriod which returns ChronosDate instances from DatePeriod by @othercorey in #476
New Contributors
- @MolbioUnige made their first contribution in #462
Full Changelog: 3.1.0...3.2.0
Chronos 2.5.1
This release requires PHP 8.4 to match the signature of DateTimeImmutable::createFromTimestamp(). Users not running PHP 8.4+ do not need this version.
What's Changed
- Allow float timestamp for createFromTimestamp() to match php by @othercorey in #474
- Require PHP 8.4 for createFromTimestamp() siganture by @othercorey in #475
Full Changelog: 2.4.5...2.5.1
Chronos 2.4.5
What's Changed
- Added replacement suggestions for some deprecated functions by @Staubiii in #458
- Fix deprecations from internals for Date by @markstory in #459
- Fix wrong return types by @Harfusha in #460
New Contributors
- @Apisathan made their first contribution in #450
- @Staubiii made their first contribution in #458
- @Harfusha made their first contribution in #460
Full Changelog: 2.4.4...2.4.5
Chronos 3.1.0
Behavior Changes
Chronos::createFromTimestamp()handles timezones differently. If$timezoneis not explicitly passed then the instance has timezone set to+00:00unlike earlier where the currently set default timezone was used. This behavior change normalizes behavior with changes in PHP 8.4 which adds a newDateTimeInterface::createFromTimestamp()method.
What's Changed
- Improve exception messages by @dereuromark in #447
- Pluralize years and months in function by @andrewlavens in #448
- Provide PSR-20 Clock implementation by @odan in #443
- Run composer normalize over composer.json by @dereuromark in #449
- Allow phpunit 11 by @ADmad in #455
- Fix error on PHP 8.4 by @ADmad in #454
New Contributors
- @andrewlavens made their first contribution in #448
Full Changelog: 3.0.4...3.1.0
Chronos 2.4.4
What's Changed
- Fix off by one errors in diffFiltered by @markstory in #446
Full Changelog: 2.4.3...2.4.4
Chronos 3.0.4
What's Changed
- Add ChronosTime::endOfDay() by @othercorey in #439
- Add microseconds to Chronos::endOfDay() by @othercorey in #441
Full Changelog: 3.0.3...3.0.4
Chronos 2.4.3
What's Changed
- Add microseconds to Chronos::endOfDay() by @othercorey in #440
- Use ChronosDate in docs by @othercorey in #438
Full Changelog: 2.4.2...2.4.3