time-machine v2.0.0 Release Notes
Release Date: 2021-01-17 // over 3 years ago-
- π Release now includes wheels for Windows and macOS.
- π Move internal calculations to use nanoseconds, avoiding a loss of precision.
- π After a call to
move_to()
, the first function call to retrieve the current time will return exactly the destination time, copying the behaviour of the first call totravel()
. - β Add the ability to shift timezone by passing in a
ZoneInfo
timezone. - β Remove
tz_offset
argument. This was incorrectly copied fromfreezegun
. Use the new timezone mocking withZoneInfo
instead. - β Add pytest plugin and fixture
time_machine
. - π Work with Windowsβ different epoch.