All Versions
27
Latest Version
Avg Release Cycle
141 days
Latest Release
64 days ago

Changelog History
Page 3

  • v2.0.0 Changes

    November 30, 2019

    ๐Ÿ’ฅ Breaking Changes

    • PHP 7.2 required.
    • 0๏ธโƒฃ Date and MutableDate now use server default time zone instead of UTC. This makes using Date objects easier for time zones that are far away from UTC as Date::today() will not be wrong as often.
    • โž• Additional typehints added to methods.
    • addYears() no longer overflows months. For example adding (new Chronos('2012-02-29'))->addYears(1);Results in 2013-02-28 not 2013-03-01.

    ๐Ÿ†• New Features

    • Strict mode enabled for all files in chronos.
    • โž• Add Chronos\DifferenceFormatterInterface.
    • Chronos::copy() returns a new instance now.
    • 0๏ธโƒฃ Date and MutableDate constructor now allow time zones to be passed in. This allows you to take dates from other time zones. The default time zone is used if not specified.
    • ๐Ÿ‘ ChronosInterval now supports microseconds.
    • โž• Added addYearsWithOverflow() to retain backwards compatibility with the previous behavior of addYears().
    • โž• Added createFromArray() to ease creating instances from array data.
  • v1.3.0 Changes

    November 30, 2019

    โž• Added

    • createFromArray() was added to make creating instances from array based data.
    • ๐Ÿ‘Œ Improved documentation and Japanese translation.

    ๐Ÿ”„ Changes

    • ๐Ÿ‘Œ Improved compatiblity with PHP 7.4
    • ๐Ÿšš Shorthand comparison functions like gt() and eq() are now aliases for the long form methods greaterThan and equals(). In the future we may deprecate and remove the short forms in order to increase readability of the API.
  • v1.2.8 Changes

    June 17, 2019
    • โž• Additional fixes for relative time parsing with test now instances.
  • v1.2.7 Changes

    June 11, 2019
    • ๐Ÿ‘Œ Improved documentation links
    • ๐Ÿ›  Fixed regression in parse() with relative times that was introduced in 1.2.6
  • v1.2.6 Changes

    May 30, 2019
    • ๐Ÿ“š Documentation now included in this repository.
    • โœ… testNow() is now used when parsing relative datetimes that only supply the time component.
  • v1.2.5 Changes

    April 23, 2019
    • ๐Ÿ›  Fix maxValue and minValue not working when timezone is not UTC.
    • Slim down zipball archives.
  • v1.2.4 Changes

    February 11, 2019
    • ๐Ÿ‘Œ Improved compatibility of __debugInfo methods with IDE debugging.