All Versions
13
Latest Version
Avg Release Cycle
47 days
Latest Release
1130 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.0.6 Changes
August 22, 2020๐ Changes
- ๐ Changed Date::createFromFormat() to workaround PHP 8 bug.
-
v2.0.5 Changes
May 26, 2020๐ Fixed
- ๐ Values in the
Ymd
format can now be parsed. - ๐ Fixed creating Chronos/MutableDateTime from existing instance.
- โ Removed remaining HHVM references.
- ๐ Values in the
-
v2.0.4 Changes
April 21, 2020๐ Fixes
- ๐ Moved test cases to match other CakePHP projects
- ๐ Improved performance of
diffInMonths()
,diffInYears()
anddiffInDays()
.
-
v2.0.3 Changes
February 26, 2020- ๐ Fix 'alias already defined' errors caused by preloading in PHP7.4
- โ Added
dayOfWeekName
magic property.
-
v2.0.2 Changes
February 08, 2020๐ Changes
- โก๏ธ Updated dev dependencies to stable versions.
- โ Removed duplicate content in README.
- You can now
new
instances of Chronos, MutableDateTime, Date, MutableDate from other instances.
-
v2.0.1 Changes
December 01, 2019๐ Fixes
- ๐ Features from 1.3.0 were merged in as they were accidentally omitted from the 2.0.0 release.
-
v2.0.0 Changes
November 30, 2019๐ฅ Breaking Changes
- PHP 7.2 required.
- 0๏ธโฃ
Date
andMutableDate
now 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-28
not2013-03-01
.
๐ New Features
- Strict mode enabled for all files in chronos.
- โ Add
Chronos\DifferenceFormatterInterface
. Chronos::copy()
returns a new instance now.- 0๏ธโฃ
Date
andMutableDate
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 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 methodsgreaterThan
andequals()
. 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