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

Add a Clock API #4

Open
sergiotaborda opened this issue Jun 17, 2019 · 0 comments
Open

Add a Clock API #4

sergiotaborda opened this issue Jun 17, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@sergiotaborda
Copy link
Contributor

sergiotaborda commented Jun 17, 2019

A Clock API allows for independence of the DateTime.now method making it possible to control time information for a single request ( all actions in the same request happened at the same logic time) allowing for posterior auditing.

A Clock API also allows to handle time in different timezones and in the present of daylight saving scenarios.

Finally code has better testability since you control the time at which operations are occurring.

@sergiotaborda sergiotaborda added the enhancement New feature or request label Jun 17, 2019
@sergiotaborda sergiotaborda added this to the v3.0.0 milestone Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant