Skip to content

Commit

Permalink
Remove FiniteDatetimeRange.days
Browse files Browse the repository at this point in the history
See #192 for details
  • Loading branch information
Peter554 committed Feb 14, 2025
1 parent 19e3e55 commit 59c15b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

- [Breaking] Remove `FiniteDatetimeRange.days` [#205](https://github.com/octoenergy/xocto/pull/205).
See [Issue #192](https://github.com/octoenergy/xocto/issues/192) for more context.

## V8.0.0 - 2025-02-05

- Remove convenience code for ddtrace [#201](https://github.com/octoenergy/xocto/pull/201/).
Expand Down
7 changes: 0 additions & 7 deletions xocto/ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,6 @@ def __or__(
) -> Optional[DatetimeRange]:
return self.union(other)

@property
def days(self) -> int:
"""
Return the number of days between the start and end of the range.
"""
return (self.end - self.start).days

@property
def seconds(self) -> int:
"""
Expand Down

0 comments on commit 59c15b4

Please sign in to comment.