chronos

A standalone DateTime library originally based off of Carbon

MIT License

Downloads
38.5M
Stars
1.4K
Committers
63

Bot releases are visible (Hide)

chronos - Chronos 1.2.1

Published by markstory over 6 years ago

  • Fix testNow being mutated by relative time strings.
chronos - Chronos 1.2.0

Published by markstory over 6 years ago

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 - Chronos 1.0.0

Published by dereuromark about 7 years ago

Stable release

chronos - Chronos 1.1.0

Published by lorenzo over 7 years ago

  • Improved diffForHumans
  • Added isNext* and isLast* methods
  • setTestNow() is now able to accept strings
  • Added __debugInfo() to all classes
chronos - Chronos 1.0.1

Published by dereuromark almost 8 years ago

  • 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 - Chronos 0.4.11

Published by lorenzo over 8 years ago

  • Fixed wrong variable in translation logic
chronos - Chronos 0.4.10

Published by lorenzo over 8 years ago

  • Fixed casing in method name causing PHP strict error
  • Allowed 5 digit years
chronos - Chronos 0.4.9 released

Published by lorenzo over 8 years ago

  • 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 - Chronos 0.4.7

Published by markstory over 8 years ago

Bugfixes

  • Correct behavior of createFromTimestamp() in FrozenDate and Date.
chronos - Chronos 0.4.6

Published by markstory over 8 years ago

Bugfixes

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

Published by lorenzo almost 9 years ago

  • Bumped minimum PHP version to 5.5.10 due to important bugs fixed after that version
  • HHVM compatibility
chronos - Chronos 0.4.4

Published by lorenzo almost 9 years ago

  • Fixed bug when using a fixed time testing instance and instantiating an object with another timezone