Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update date_of_day_before docstring #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xocto/localtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def date_of_day_before(
That is, find the local date of the datetime passed in, subtract one day from it, and return it.

This is frequently useful when we are converting from the upper bound of a datetime range,
which by convention we treat as exclusive, to the upper bound of a date range, which by
convention we consider *inclusive*.
which we tend to treat as exclusive, to the upper bound of a date range, which we tend to
consider *inclusive*.

Note that `dt` must already be timezone-aware: it cannot be naive. It may be in UTC, for
example, or already in current local time, in which case the effect will be the same as
Expand Down