Skip to content

Create timezone.dst() with return None for timetuple() fix #20

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

Merged
merged 1 commit into from
Aug 14, 2022
Merged
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
7 changes: 7 additions & 0 deletions adafruit_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,13 @@ def tzname(self, dt: "datetime") -> str:
"""Return the time zone name corresponding to the datetime object dt, as a string."""
raise NotImplementedError("tzinfo subclass must override tzname()")

def dst(self, dt: "datetime") -> None: # pylint: disable=unused-argument
"""Return the DST setting correspinding to the datetime object dt, as a number.

DST usage is currently not implemented for this library.
"""
return None

# tzinfo is an abstract base class, disabling for self._offset
# pylint: disable=no-member
def fromutc(self, dt: "datetime") -> "datetime":
Expand Down