Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a PSR clock for internal time management? #520

Open
Ocramius opened this issue Oct 30, 2023 · 0 comments
Open

Use a PSR clock for internal time management? #520

Ocramius opened this issue Oct 30, 2023 · 0 comments

Comments

@Ocramius
Copy link
Sponsor Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant