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

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

a50/clock
=========

PSR-20 ClockInterface implementation

v1.0.1(2y ago)03.0kMITPHPPHP ^8.1

Since May 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/a50dev/clock)[ Packagist](https://packagist.org/packages/a50/clock)[ RSS](/packages/a50-clock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

 [ ![](https://avatars.githubusercontent.com/u/150102356) ](https://github.com/A50dev)

A50 Clock
=========

[](#a50-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/f3ec41317a7e1467cb3e19dbf5ccb18152fc15925796f09c470e9c88fea1cff5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6135302f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/clock)[![Tests](https://github.com/a50/clock/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/a50/clock/actions/workflows/test.yml)[![Analysis](https://github.com/a50/clock/actions/workflows/analyse.yml/badge.svg?branch=main)](https://github.com/a50/clock/actions/workflows/analyse.yml)[![Total Downloads](https://camo.githubusercontent.com/bdda466aa55342453c68371b1ad31155d107d90422d90f8b843045ebda1bd51a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6135302f636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/clock)

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

[](#installation)

You can install the package via composer:

```
composer require a50/clock
```

Usage
-----

[](#usage)

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

```
