Clock
Table of Contents
Namespaces
Interfaces
Classes
- Clock
- A global clock.
- DatePoint
- An immmutable DateTime with stricter error handling and return types than the native one.
- MockClock
- A clock that always returns the same date, suitable for testing time-sensitive logic.
- MonotonicClock
- A monotonic clock suitable for performance profiling.
- NativeClock
- A clock that relies the system time.
Traits
- ClockAwareTrait
- A trait to help write time-sensitive classes.
Functions
Functions
now()
now([string $modifier = 'now' ]) : DatePoint
Parameters
- $modifier : string = 'now'