Skip to content

Chronos 3.5.0

Latest

Choose a tag to compare

@dereuromark dereuromark released this 10 Apr 02:55
e6e777b

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