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

extend Qowaiv.Clock with a TimeProvider #371

Merged
merged 2 commits into from
Jan 29, 2024
Merged

extend Qowaiv.Clock with a TimeProvider #371

merged 2 commits into from
Jan 29, 2024

Conversation

Corniel
Copy link
Collaborator

@Corniel Corniel commented Jan 25, 2024

Since .NET 8.0, Microsoft provides a TimeProvider. To allow people to continue to work with Qowaiv.Clock without the burden to have to implement a TimeProvider themselves, a singleton is added to Qowaiv.Clock that acts identical to UtcNow() and TimeZone of Qowaiv.Clock. Obviously, this functionality is only available for .NET 8.0.

@Corniel Corniel added this to the Qowaiv 7.0 milestone Jan 25, 2024
@Corniel Corniel requested a review from Sjaaky January 25, 2024 10:09
@Corniel Corniel self-assigned this Jan 25, 2024
README.md Outdated Show resolved Hide resolved
@Corniel Corniel merged commit 428eb12 into qowaiv-v7 Jan 29, 2024
2 checks passed
@Corniel Corniel deleted the time-provider branch January 29, 2024 12:09
Corniel added a commit that referenced this pull request Mar 27, 2024
Corniel added a commit that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants