-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encapsulate date_range... fn in FiniteDatetimeRange
This moves/renames `ranges.date_range_for_midnight_range` so it's a method: `FiniteDatetimeRange.as_date_range` - more concise. Before: ranges.date_range_for_midnight_range( dt_range.localize(my_timezone) # common pre-step ) After: dt_range.localize(my_timezone).as_date_range() The behaviour is unchanged: only midnight ranges, which fully span a date range, are supported in the conversion.
- Loading branch information
1 parent
7f34d7c
commit 2786ddb
Showing
3 changed files
with
80 additions
and
79 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