Skip to content
docsv0.12.0

SystemClock

The wall clock: reads the real time. Non-deterministic by design — inject a {@see FixedClock} for replay.

SystemClock::now()

public function now(): string

The real current instant, ISO-8601 — non-deterministic.

SystemClock::instant()

public function instant(): DateTimeImmutable

The real current instant as a UTC {@see \DateTimeImmutable} — non-deterministic.