PHPackages                             alexeyshockov/clock - 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. alexeyshockov/clock

Abandoned → [cakephp/chronos](/?search=cakephp%2Fchronos)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

alexeyshockov/clock
===================

Date &amp; time manupulation library for PHP

v0.1.0(13y ago)21212[6 issues](https://github.com/alexeyshockov/clock/issues)1MITPHPPHP &gt;=5.3.2

Since May 9Pushed 13y ago1 watchersCompare

[ Source](https://github.com/alexeyshockov/clock)[ Packagist](https://packagist.org/packages/alexeyshockov/clock)[ Docs](http://github.com/alexeyshockov/clock)[ RSS](/packages/alexeyshockov-clock/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (1)

Clock [![Build Status](https://camo.githubusercontent.com/479ac4c2f813d94d4b0b59c33f908c18eafdf33321e9a84370be5466af57daa9/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f616c6578657973686f636b6f762f636c6f636b2e706e67)](http://travis-ci.org/alexeyshockov/clock)
===============================================================================================================================================================================================================================================================================

[](#clock-)

Goal
----

[](#goal)

*Convenient* and *safe* way to work with date &amp; time in PHP.

Benefits
--------

[](#benefits)

- Rich, easy to understand (and remember) method set.
- Functional idioms:
    - immutable collections (safest and usable for most cases).

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

[](#installation)

Clock currently may be installed as submodule for your Git project:

```
git submodule add git://github.com/alexeyshockov/clock.git vendor/clock
```

or throught [Composer](https://github.com/composer/composer):

```
{
    "require": {
        "alexeyshockov/clock": "dev-master"
    }
}
```

Usage
-----

[](#usage)

Some examples:

```
