Skip to content

Releases: cakephp/chronos

Chronos 1.2.1

11 Jul 18:52
1.2.1
243bb7b
Compare
Choose a tag to compare
  • Fix testNow being mutated by relative time strings.

Chronos 1.2.0

21 Jun 02:08
1.2.0
a0293d2
Compare
Choose a tag to compare

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

15 Feb 08:54
Compare
Choose a tag to compare
  • Improved diffForHumans
  • Added isNext* and isLast* methods
  • setTestNow() is now able to accept strings
  • Added __debugInfo() to all classes

Chronos 1.0.1

15 Nov 14:53
Compare
Choose a tag to compare
  • 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

30 Aug 09:10
1.0.0
Compare
Choose a tag to compare

Stable release

Chronos 0.4.11

15 Jun 08:02
Compare
Choose a tag to compare
  • Fixed wrong variable in translation logic

Chronos 0.4.10

14 Jun 14:55
Compare
Choose a tag to compare
  • Fixed casing in method name causing PHP strict error
  • Allowed 5 digit years

Chronos 0.4.9 released

16 Apr 18:17
Compare
Choose a tag to compare
  • 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

14 Feb 20:41
0.4.7
Compare
Choose a tag to compare

Bugfixes

  • Correct behavior of createFromTimestamp() in FrozenDate and Date.

Chronos 0.4.6

14 Feb 20:40
0.4.6
Compare
Choose a tag to compare

Bugfixes

  • Reduce installation instruction to allow stock ubuntu (@markstory)
  • Improved documentation (@lorenzo)
  • setDate() now includes workarounds for PHP bugs (@markstory)