mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Removed blurb admonishing users to raise an exception if the datetime
argument to a tzinfo method doesn't have a matching tzinfo member.
This commit is contained in:
parent
2483b61e03
commit
52d134874f
1 changed files with 1 additions and 2 deletions
|
|
@ -767,8 +767,7 @@ implement all of them. The methods are called by a \class{datetimetz}
|
|||
or \class{timetz} object, passing itself as the argument. A
|
||||
\class{tzinfo} subclass's methods should be prepared to accept a dt
|
||||
argument of \code{None} or of type \class{timetz} or
|
||||
\class{datetimetz}. If is not \code{None}, and dt.tzinfo is not
|
||||
\code{None} and not equal to self, an exception should be raised.
|
||||
\class{datetimetz}.
|
||||
|
||||
- utcoffset(dt)
|
||||
Return offset of local time from UTC, in minutes east of UTC. If
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue