You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.rst
+1-5
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Use **pip**:
54
54
55
55
python -m pip install time-machine
56
56
57
-
Python 3.8 to 3.13 supported.
57
+
Python 3.9 to 3.13 supported.
58
58
Only CPython is supported at this time because time-machine directly hooks into the C-level API.
59
59
60
60
@@ -210,17 +210,13 @@ Timezone mocking
210
210
211
211
If the ``destination`` passed to ``time_machine.travel()`` or ``Coordinates.move_to()`` has its ``tzinfo`` set to a |zoneinfo-instance2|_, the current timezone will be mocked.
212
212
This will be done by calling |time-tzset|_, so it is only available on Unix.
213
-
The ``zoneinfo`` module is new in Python 3.8 - on older Python versions use the |backports-zoneinfo-package|_, by the original ``zoneinfo`` author.
``time.tzset()`` changes the ``time`` module’s `timezone constants <https://docs.python.org/3/library/time.html#timezone-constants>`__ and features that rely on those, such as ``time.localtime()``.
225
221
It won’t affect other concepts of “the current timezone”, such as Django’s (which can be changed with its |timezone-override|_).
0 commit comments