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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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