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

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

ghostwriter/clock
=================

Provides a Clock implementation for PHP

3.0.1(1y ago)02.7M—7%6BSD-3-ClausePHPPHP &gt;=8.3CI passing

Since Sep 29Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ghostwriter/clock)[ Packagist](https://packagist.org/packages/ghostwriter/clock)[ Docs](https://github.com/ghostwriter/clock)[ GitHub Sponsors](https://github.com/sponsors/ghostwriter)[ RSS](/packages/ghostwriter-clock/feed)WikiDiscussions 3.0.x Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (14)Used By (6)

Clock
=====

[](#clock)

[![GitHub Sponsors](https://camo.githubusercontent.com/41d0cbb04a6aa380e037eb3cbdd7ed71f14de40731f3c81f5ea27ceedb7c01f2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f67686f73747772697465723f6c6162656c3d53706f6e736f722b4067686f73747772697465722f636c6f636b266c6f676f3d4769744875622b53706f6e736f7273)](https://github.com/sponsors/ghostwriter)[![Automation](https://github.com/ghostwriter/clock/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/clock/actions/workflows/automation.yml)[![Supported PHP Version](https://camo.githubusercontent.com/1c0e23e8088b221055de2465958887c7d1908c04151e54932114567104aff7f1/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f67686f73747772697465722f636c6f636b3f636f6c6f723d383839326266)](https://www.php.net/supported-versions)[![Downloads](https://camo.githubusercontent.com/2480998b87d66597033e4f307dbd8b822b6b51202782a5dfbc307168ccc9935c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f67686f73747772697465722f636c6f636b3f636f6c6f723d626c7565)](https://packagist.org/packages/ghostwriter/clock)

Provides an immutable Clock implementation for PHP

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

[](#installation)

You can install the package via composer:

```
composer require ghostwriter/clock
```

### Star ⭐️ this repo if you find it useful

[](#star-️-this-repo-if-you-find-it-useful)

You can also star (🌟) this repo to find it easier later.

### Usage

[](#usage)

```
