PHPackages                             cakephp/chronos - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. cakephp/chronos

ActiveLibrary[Framework](/categories/framework)

cakephp/chronos
===============

A simple API extension for DateTime.

3.4.0(1mo ago)1.4k47.7M—5.1%71[2 issues](https://github.com/cakephp/chronos/issues)[1 PRs](https://github.com/cakephp/chronos/pulls)20MITPHPPHP &gt;=8.1CI passing

Since Oct 12Pushed 2w ago40 watchersCompare

[ Source](https://github.com/cakephp/chronos)[ Packagist](https://packagist.org/packages/cakephp/chronos)[ Docs](https://cakephp.org)[ RSS](/packages/cakephp-chronos/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (92)Used By (20)

CakePHP Chronos
===============

[](#cakephp-chronos)

[![Build Status](https://github.com/cakephp/chronos/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/cakephp/chronos/actions/workflows/ci.yml/badge.svg?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/78c0aa9913419f0ed3b06c358ac0fead6afedb021c1a4a6b22b9b712ec3546d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63616b657068702f6368726f6e6f733f736f72743d73656d766572267374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/chronos)[![Total Downloads](https://camo.githubusercontent.com/c1914bb7b9c2ff6219d62b2067b4aa376d3f873150e4da6a304b053919be9088/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616b657068702f6368726f6e6f733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/chronos/stats)[![Code Coverage](https://camo.githubusercontent.com/33a9e22f3f756b1ee8321ce19522f5f5597f5e10e5412571fcf6041b63d3e213/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f63616b657068702f6368726f6e6f732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/cakephp/chronos?branch=master)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Chronos focuses on providing immutable date/datetime objects. Immutable objects help ensure that datetime objects aren't accidentally modified, keeping data more predictable.

Installation
============

[](#installation)

Installing with composer:

```
$ composer require cakephp/chronos

```

For details on the (minimum/maximum) PHP version see [version map](https://github.com/cakephp/chronos/wiki#version-map).

Usage
=====

[](#usage)

```
