Skip to content

Commit

Permalink
documentation for travel timedelta support
Browse files Browse the repository at this point in the history
  • Loading branch information
AgDude committed Nov 4, 2022
1 parent 081c56b commit 79177ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ History
=======

* Build Windows ARM64 wheels.
* Add support for ``datetime.timedelta`` to ``time_machine.travel()``

2.8.2 (2022-09-29)
------------------
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ It may be:
* A ``float`` or ``int`` specifying a `Unix timestamp <https://en.m.wikipedia.org/wiki/Unix_time>`__
* A string, which will be parsed with `dateutil.parse <https://dateutil.readthedocs.io/en/stable/parser.html>`__ and converted to a timestamp.
Again, if the result is naive, it will be assumed to have the UTC time zone.
* A ``datetime.timedelta`` relative to the current real time.

.. |zoneinfo-instance| replace:: ``zoneinfo.ZoneInfo`` instance
.. _zoneinfo-instance: https://docs.python.org/3/library/zoneinfo.html#zoneinfo.ZoneInfo
Expand Down

0 comments on commit 79177ca

Please sign in to comment.