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

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

psr/clock
=========

Common interface for reading the clock.

1.0.0(3y ago)642332.9M—4.2%720MITPHPPHP ^7.0 || ^8.0

Since Nov 25Pushed 2y ago10 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (20)

PSR Clock
=========

[](#psr-clock)

This repository holds the interface for [PSR-20](https://www.php-fig.org/psr/psr-20).

Note that this is not a clock of its own. It is merely an interface that describes a clock. See the specification for more details.

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

[](#installation)

```
composer require psr/clock
```

Usage
-----

[](#usage)

If you need a clock, you can use the interface like this:

```
