PHPackages                             morebec/orkestra-datetime - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. morebec/orkestra-datetime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

morebec/orkestra-datetime
=========================

Extension of CakePHP/Chronos that adds utility functions around DateTime manipulation.

v2.5.6(3y ago)1539↓100%7Apache-2.0PHPPHP &gt;=7.4

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Morebec/orkestra-datetime)[ Packagist](https://packagist.org/packages/morebec/orkestra-datetime)[ RSS](/packages/morebec-orkestra-datetime/feed)WikiDiscussions 2.x Synced today

READMEChangelogDependencies (5)Versions (23)Used By (7)

DateTime
========

[](#datetime)

The Orkestra DateTime Component builds on top of [cakephp/chronos](https://github.com/cakephp/chronos) which itself builds on top of [nesbot/carbon](https://github.com/nesbot/carbon) in order to bring immutability to dates and times as the default. It provides the concept of a `ClockInterface` to be used in projects to get the time as an infrastructure concern instead of directly accessing time as well as providing Date(Time)Range implementations.

Installation
------------

[](#installation)

```
composer require morebec/orkestra-orkestra-datetime
```

Then ensure the composer autoloader is imported:

```
