navarr/precise-clocks

An implementation of PSR-20 that is precise within given confines

Fund package maintenance!
navarr

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/navarr/precise-clocks

v1.0.1 2025-10-06 20:09 UTC

This package is auto-updated.

Last update: 2025-10-06 20:10:05 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License
Tests Code Coverage Mutation score

This library contains implementations of PSR-20 that provides a clocks that are precise to their namesake, and while in the same time to that precision, return the exact same object.

Installation

composer require navarr/precise-clocks:^1

Usage

use Navarr\PreciseClock\MinutePrecisionClock;

$clock = new MinutePrecisionClock();
$a = $clock->now();
$b = $clock->now();

spl_object_id($a) === spl_object_id($b); // true