-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Didn't actually fix any but I verified their correctness. These changes are just refactors/enhancements
- Loading branch information
Showing
6 changed files
with
54 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b7a07e5
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.
I am do not see why you needed to change the end date so that it is now "exclusive", i.e. outside the required interval. But having done it line 342 should be changed: LoggedConsole.WriteLine("# Day count = " + dayCount + " (inclusive of start and end days)");
b7a07e5
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.
Hi @towsey - good pick.
As for exclusive ended ranges by default:
Date
s are never just dates but are alwaysDateTime
s. This leaves an open question of what the implicit time component of a date is. Using an closed/inclusive range means that the implicit time component for the start and end dates is00:00:00.000000
and23:59:59.999999
respectively. Whereas if we adhere to our standard there are no special rules for end dates - both time components are00:00:00.000000
.It should be noted that the unit test failed despite that change. It seems the ConcatenateIndexFilesTest24Hour test ignores whatever dates are provided to it and just produces the whole image.