Skip to content

Commit 963f632

Browse files
picnixzhugovk
andauthored
explicitly import datetime
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent eb0802f commit 963f632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/uuid.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ Here are some examples of typical usage of the :mod:`uuid` module::
441441
>>> u.time # doctest: +SKIP
442442
1743936859822
443443
>>> # get UUIDv7 creation (local) time as a datetime object
444-
>>> datetime.fromtimestamp(u.time / 1000) # doctest: +SKIP
444+
>>> import datetime as dt
445+
>>> dt.datetime.fromtimestamp(u.time / 1000) # doctest: +SKIP
445446
datetime.datetime(...)
446447

447448

0 commit comments

Comments
 (0)