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 df0e8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- [Breaking] Remove `FiniteDatetimeRange.days` [](). See

## 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 df0e8e3

Please sign in to comment.