Time-machine

Latest version: v2.16.0

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.16.0

-------------------

* Drop Python 3.8 support.

2.15.0

-------------------

* Include wheels for Python 3.13.

2.14.2

-------------------

* Fix ``SystemError`` on Python 3.13 and Windows when starting time travelling.

Thanks to Bernát Gábor for the report in `Issue 456 <https://github.com/adamchainz/time-machine/issues/456>`__.

2.14.1

-------------------

* Fix segmentation fault when the first ``travel()`` call in a process uses a ``timedelta``.

Thanks to Marcin Sulikowski for the report in `Issue 431 <https://github.com/adamchainz/time-machine/issues/431>`__.

2.14.0

-------------------

* Fix ``utcfromtimestamp()`` warning on Python 3.12+.

Thanks to Konstantin Baikov in `PR 424 <https://github.com/adamchainz/time-machine/pull/424>`__.

* Fix class decorator for classmethod overrides.

Thanks to Pavel Bitiukov for the reproducer in `PR 404 <https://github.com/adamchainz/time-machine/pull/404>`__.

* Avoid calling deprecated ``uuid._load_system_functions()`` on Python 3.9+.

Thanks to Nikita Sobolev for the ping in `CPython Issue 113308 <https://github.com/python/cpython/issues/113308>`__.

* Support Python 3.13 alpha 4.

Thanks to Miro Hrončok in `PR 409 <https://github.com/adamchainz/time-machine/pull/409>`__.

2.13.0

-------------------

* Add support for ``datetime.timedelta`` to ``time_machine.travel()``.

Thanks to Nate Dudenhoeffer in `PR 298 <https://github.com/adamchainz/time-machine/pull/298>`__.

* Fix documentation about using local time for naive date(time) strings.

Thanks to Stefaan Lippens in `PR 306 <https://github.com/adamchainz/time-machine/pull/306>`__.

* Add ``shift()`` method to the ``time_machine`` pytest fixture.

Thanks to Stefaan Lippens in `PR 312 <https://github.com/adamchainz/time-machine/pull/312>`__.

* Mock ``time.monotonic()`` and ``time.monotonic_ns()``.
They return the values of ``time.time()`` and ``time.time_ns()`` respectively, rather than real monotonic clocks.

Thanks to Anthony Sottile in `PR 382 <https://github.com/adamchainz/time-machine/pull/382>`__.

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.