Skip to content

Use a PSR clock for internal time management? #520

Open
@Ocramius

Description

@Ocramius

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions