-
Notifications
You must be signed in to change notification settings - Fork 417
[dev-v5] Add DateTimeProvider and DateTimeExtensions #3714
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
Conversation
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 99.4%
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not also have these extensions and helpers for DateTimeOffset?
Good question. This is the v4 extension file. And at this moment the v4 don't use DateTimeOffset extensions. So I propose to add these extensions later, only if we need it. |
[dev-v5] Add DateTimeProvider and DateTimeExtensions
Add a DateTimeProvider and DateTimeProviderContext
See the ReadMe.md documentation in the Utilities/DateTime folder.
Add some
DateTimeExtensions
methodsAdd a method
ToTimeAgo(TimeSpan)
to return an equivalent localizable string.Unit Tests