Document that sleep_until considers naive datetimes as UTC.
This commit is contained in:
parent
1ee1b7feea
commit
cbdf660ddc
@ -351,7 +351,8 @@ async def sleep_until(when, result=None):
|
|||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
when: :class:`datetime.datetime`
|
when: :class:`datetime.datetime`
|
||||||
The timestamp in which to sleep until.
|
The timestamp in which to sleep until. If the datetime is naive then
|
||||||
|
it is assumed to be in UTC.
|
||||||
result: Any
|
result: Any
|
||||||
If provided is returned to the caller when the coroutine completes.
|
If provided is returned to the caller when the coroutine completes.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user