Chronos focuses on providing immutable date/datetime objects. Immutable objects help ensure that datetime objects aren't accidentally modified keeping data more predictable. Chronos was originally compatible with Carbon but has diverged and no longer extends the PHP DateTime and DateTimeImmutable classes. PHP only offers datetime objects as part of the native extensions. Chronos adds a number of conveniences to the traditional DateTime object and introduces a ChronosDate object. ChronosDate instances their time frozen to 00:00:00 and the timezone set to the server default timezone. This makes them ideal when working with calendar dates as the time components will always match.

Features

  • API documentation
  • Examples available
  • ChronosDate objects for representing calendar dates
  • Immutable date and datetime objects
  • A pluggable translation system
  • cakephp/i18n can be used for full language support

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow CakePHP Chronos

CakePHP Chronos Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CakePHP Chronos!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2024-05-23