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
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Get Started 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