PHPackages                             arokettu/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. arokettu/clock

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

arokettu/clock
==============

PSR-20 Implementation

2.7.0(1y ago)09.6k↓46.2%6MITPHPPHP ^8.0

Since Mar 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/arokettu/php-clock)[ Packagist](https://packagist.org/packages/arokettu/clock)[ Docs](https://sandfox.dev/php/clock.html)[ RSS](/packages/arokettu-clock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (21)Used By (6)

Clock
=====

[](#clock)

[![Packagist](https://camo.githubusercontent.com/bc274a13b9077767148311af99f8e7a8cfdd7a93c186402cefecd0779aa1ae75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/clock)[![PHP](https://camo.githubusercontent.com/745f07441390a88fcf28da9df3dd1027ec4a44a446a2fd60f5c70e2897c6641c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726f6b657474752f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/clock)[![License](https://camo.githubusercontent.com/ca2f1dddd4225e2ce6a809065e7cf5574e15e442f09a8190dbe41b6211e9d9ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61726f6b657474752f7068702d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Gitlab pipeline status](https://camo.githubusercontent.com/e193fae8a7e0227d2a3e46592c6936187ab6077a0009e0a7a775288d71ede778/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f7068702d636c6f636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/php-clock/-/pipelines)[![Codecov](https://camo.githubusercontent.com/48a976908f2a985e746446fa7ead299c154a368689d65499dfba663881a714f0/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f676c2f73616e64666f782f7068702d636c6f636b3f7374796c653d666c61742d737175617265)](https://codecov.io/gl/sandfox/php-clock/)[![Downloads](https://camo.githubusercontent.com/682b1fc8e026953413c9f7ac134f497fc21abd5f346b3997e5d96aaee9f9680e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f61726f6b657474752f636c6f636b3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/clock)

A collection of clock abstraction classes for [PSR-20](https://www.php-fig.org/psr/psr-20/).

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

[](#installation)

```
composer require arokettu/clock
```

Supported versions:

- 1.x (LTS-ish, PHP 7.0+)
- 2.x (current, PHP 8.0+)

Example
-------

[](#example)

```
