Registry / utility / innmind-time-continuum

innmind-time-continuum

JSON →
library5.1.0phppackagistunverified

Library to manipulate time

composer require innmind/time-continuum
INSTALL
IMPORT
SIG · INNMIND-TIME-CONTI
I
innmind-time-continuum
utilityphpv5.1.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 Innmind\TimeContinuum\Earth\Clock;

Get the current time using the Earth clock.

use Innmind\TimeContinuum\Earth\Clock; $clock = new Clock(); $now = $clock->now(); echo $now->format('Y-m-d H:i:s');
Debug
Known issues
gotchaUses immutable value objects; time points cannot be modified after creation.
fix
Create new instances for modified times instead of mutating.
affects: >=5.0.0
Upgrade
Version history
5.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
innmind-time-continuum — pip install innmind-time-continuum · libregistry