Skip to content

Releases: cakephp/chronos

Chronos 3.5.0

10 Apr 02:55
e6e777b

Choose a tag to compare

Improvements

  • Added DST-safe elapsed time arithmetic methods that use Unix timestamp manipulation instead of wall clock time:

    • addElapsedHours() / subElapsedHours()
    • addElapsedMinutes() / subElapsedMinutes()
    • addElapsedSeconds() / subElapsedSeconds()

    These methods ensure correct behavior across DST transitions and are true inverses of diffInHours(), diffInMinutes(), and diffInSeconds().

Full Changelog: 3.4.0...3.5.0

Chronos 3.4.0

25 Mar 23:05

Choose a tag to compare

What's Changed

Full Changelog: 3.3.3...3.4.0

Chronos 3.3.3

14 Mar 17:04
960e7ec

Choose a tag to compare

What's Changed

Bug Fixes

  • Fix regression in 3.3.2: createFromFormat() with Unix timestamp format ('U') incorrectly applying testNow, reverted due to BC break - #503

Full Changelog: 3.3.2...3.3.3

Chronos 3.3.2

14 Mar 15:57
e425685

Choose a tag to compare

What's Changed

Bug Fixes

  • Fix createFromFormat to respect setTestNow for missing components by @dereuromark in #494
  • Prevent infinite loops from zero-interval DatePeriods by @dereuromark in #499

Full Changelog: 3.3.1...3.3.2

Chronos 3.3.1

30 Oct 13:13
1e417fd

Choose a tag to compare

What's Changed

  • Use match() instead of switch/case. by @ADmad in #487

Full Changelog: 3.3.0...3.3.1

Chronos 3.3.0

27 Oct 18:21
7d9af08

Choose a tag to compare

What's Changed

Full Changelog: 3.2.0...3.3.0

Chronos 2.5.2

26 Oct 15:03
cd4e1ef

Choose a tag to compare

What's Changed

Full Changelog: 2.5.1...2.5.2

Chronos 3.2.0

28 Jun 11:38

Choose a tag to compare

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

Full Changelog: 3.1.0...3.2.0

Chronos 2.5.1

18 Jun 08:24
9e73729

Choose a tag to compare

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

06 Aug 17:17
b0321ab

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.4.4...2.4.5