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

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

zorachka/clock
==============

PSR-20 ClockInterface implementation

1604PHP

Since Apr 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zorachka/clock)[ Packagist](https://packagist.org/packages/zorachka/clock)[ RSS](/packages/zorachka-clock/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/86768962) ](https://github.com/zorachka)

Zorachka Clock
==============

[](#zorachka-clock)

This package provides an implementation of the [PSR-20 ClockInterface](https://www.php-fig.org/psr/psr-20/).

[![Latest Version on Packagist](https://camo.githubusercontent.com/f23c2d5fc306fdb7c31d34e50fa9357ccbd0c17ef4dd34343cb3894bb14ec0cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f726163686b612f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zorachka/clock)[![Tests](https://github.com/zorachka/clock/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/zorachka/clock/actions/workflows/test.yml)[![Analysis](https://github.com/zorachka/clock/actions/workflows/analyse.yml/badge.svg?branch=main)](https://github.com/zorachka/clock/actions/workflows/analyse.yml)[![Total Downloads](https://camo.githubusercontent.com/d6a11cd8dce504e14d39097b66c80c82305793366c4b3ca03e4c2cbf186dd0cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f726163686b612f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zorachka/clock)

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

[](#installation)

You can install the package via composer:

```
composer require zorachka/clock
```

Usage
-----

[](#usage)

Pass ClockInterface to the method in which you want to get the current date in the desired time zone:

```
