-
Notifications
You must be signed in to change notification settings - Fork 0
Add DateTime extensions #13
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
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.
Pull Request Overview
This PR introduces a new set of DateTime extension methods to provide common utility functions for date and time operations. The changes add three key extension methods with comprehensive test coverage.
- Added
IsMidnight()methods to check if a DateTime represents midnight, with optional seconds tolerance - Added
IsEndOfMonth()method to determine if a DateTime is the last day of its month - Added
IsInRange()method to check if a DateTime falls within a specified date range
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Neolution.Utilities/Extensions/DateTimeExtensions.cs | New static class containing the three DateTime extension methods with XML documentation |
| Neolution.Utilities.UnitTests/Extensions/DateTimeExtensionsTests.cs | Comprehensive unit tests covering all extension methods with edge cases and boundary conditions |
| CHANGELOG.md | Updated to document the addition of DateTime extension methods |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
/_0a452
/_0a452
/2a4d6e
/356dc9
/4003f6
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7c3b6f9 |
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Neolution.Utilities.UnitTests/Extensions/DateTimeExtensionsTests.cs
Outdated
Show resolved
Hide resolved
…ts.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
No description provided.