Document that sleep_until considers naive datetimes as UTC.

This commit is contained in:
Rapptz 2020-05-29 02:59:18 -04:00
parent 1ee1b7feea
commit cbdf660ddc

View File

@ -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.
""" """