All Versions
27
Latest Version
Avg Release Cycle
141 days
Latest Release
64 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v2.0.0 Changes
November 30, 2019๐ฅ Breaking Changes
- PHP 7.2 required.
- 0๏ธโฃ
DateandMutableDatenow use server default time zone instead of UTC. This makes using Date objects easier for time zones that are far away from UTC asDate::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 in2013-02-28not2013-03-01.
๐ New Features
- Strict mode enabled for all files in chronos.
- โ Add
Chronos\DifferenceFormatterInterface. Chronos::copy()returns a new instance now.- 0๏ธโฃ
DateandMutableDateconstructor 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. - ๐
ChronosIntervalnow supports microseconds. - โ Added
addYearsWithOverflow()to retain backwards compatibility with the previous behavior ofaddYears(). - โ 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()andeq()are now aliases for the long form methodsgreaterThanandequals(). 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
__debugInfomethods with IDE debugging.
- ๐ Improved compatibility of