#520·uuid

Use a PSR clock for internal time management?

Author: OcramiusCreated Oct 30, 2023Updated Oct 30, 2023
Labelsenhancement

This is just wishful thinking, but discussed in Discord today, and I was wondering if this library could benefit of psr/clock in future, instead of building DateTime instances on its own?

The rationale mostly being that using a clock abstraction can avoid many system-level calls, when used with a fixed time, plus useful for testing purposes.

That said, feel free to dismiss: this is just rambling.