Registry / utility / lcobucci-clock

lcobucci-clock

JSON →
library3.6.0phppackagistunverified

Yet another clock abstraction for PHP, providing a simple interface to obtain the current time.

composer require lcobucci/clock
INSTALL
IMPORT
SIG · LCOBUCCI-CLOCK
L
lcobucci-clock
utilityphpv3.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Clock
use Lcobucci\Clock\Clock;

Create a system clock and get the current time.

use Lcobucci\Clock\SystemClock; $clock = new SystemClock(new DateTimeZone('UTC')); echo $clock->now()->format('Y-m-d H:i:s');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lcobucci-clock — pip install lcobucci-clock · libregistry