Registry / utility / symfony-clock

symfony-clock

JSON →
library8.0.8phppackagistunverified

Decouples applications from the system clock.

composer require symfony/clock
INSTALL
IMPORT
SIG · SYMFONY-CLOCK
S
symfony-clock
utilityphpv8.0.8
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.

ClockInterface
✓ use Symfony\Component\Clock\ClockInterface;

Gets the current time using a clock implementation.

use Symfony\Component\Clock\ClockInterface; use Symfony\Component\Clock\NativeClock; $clock = new NativeClock(); echo $clock->now()->format('Y-m-d H:i:s');
Debug
Known issues
breakingRequires PHP 8.1 or higher.
fix
Upgrade PHP to version 8.1+.
affects: <8.0.0
Upgrade
Version history
8.0.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Resources
symfony-clock — pip install symfony-clock · libregistry