Releases: cakephp/chronos
Releases · cakephp/chronos
Chronos 1.2.1
- Fix testNow being mutated by relative time strings.
Chronos 1.2.0
Changes
- Tests are no longer run against HHVM
- Improved API documentation
- Setting time on a Date instance will now clear microseconds in when microseconds are offered by PHP.
New Features
- Test 'now' is shared across all classes. Changing 'now' in one class will update 'now' in all other classes.
- ChronosInterval::__toString() now normalizes the period to match intervals used in standard clocks. Instead of 147S you will now get 2M27S as an example.
Chronos 1.1.0
- Improved diffForHumans
- Added isNext* and isLast* methods
- setTestNow() is now able to accept strings
- Added __debugInfo() to all classes
Chronos 1.0.1
- Added PHP 7.1 compatibility. In PHP 7.1 dates always have microtime, so we need to account for that when doing secondwise comparisons.
Chronos 1.0.0
Stable release
Chronos 0.4.11
- Fixed wrong variable in translation logic
Chronos 0.4.10
- Fixed casing in method name causing PHP strict error
- Allowed 5 digit years
Chronos 0.4.9 released
- Small optimizations (@Bilge )
- Made tests more resilient to DST changes (@lorenzo)
- Fixed testNow when using
today
in the constructor (@lorenzo) - Fixed
Date
classes when modifying them using a relative time keyword (@markstory)
Chronos 0.4.7
Bugfixes
- Correct behavior of createFromTimestamp() in FrozenDate and Date.
Chronos 0.4.6
Bugfixes
- Reduce installation instruction to allow stock ubuntu (@markstory)
- Improved documentation (@lorenzo)
setDate()
now includes workarounds for PHP bugs (@markstory)