We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0427f74 commit 0d555e4Copy full SHA for 0d555e4
Doc/library/ssl.rst
@@ -388,8 +388,8 @@ Certificate handling
388
>>> timestamp = ssl.cert_time_to_seconds("Jan 5 09:34:43 2018 GMT")
389
>>> timestamp # doctest: +SKIP
390
1515144883
391
- >>> print(dt.datetime.utcfromtimestamp(timestamp)) # doctest: +SKIP
392
- 2018-01-05 09:34:43
+ >>> print(dt.datetime.fromtimestamp(timestamp, dt.UTC)) # doctest: +SKIP
+ 2018-01-05 09:34:43+00:00
393
394
"notBefore" or "notAfter" dates must use GMT (:rfc:`5280`).
395
0 commit comments