-
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.
Add date_range_for_midnight_range utility function
This will be used to DRY-up converting datetime ranges. Before: ranges.FiniteDateRange( midnight_aligned_range.start.date(), midnight_aligned_range.end.date() - timedelta(days=1), ) After: ranges.date_range_for_midnight_range(midnight_aligned_range) Pull Request in Kraken Core to demo usage [^1]. [^1]: octoenergy/kraken-core#166268
- Loading branch information
1 parent
7eb3a98
commit 2363944
Showing
2 changed files
with
79 additions
and
0 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