time-machine breaking changes
Updated December 4, 2026
On this page
Latest version 3.6.0, released October 25, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
time-machine 3.6.0 breaking changes
- Removed
time_machine.cli.replace_aliased_import
time_machine.cli.replace_aliased_import was removed in time-machine 3.6.0 pypi.org - Removed
time_machine.cli.replace_import_from
time_machine.cli.replace_import_from was removed in time-machine 3.6.0 pypi.org - Signature changed
time_machine.cli.replace_import
Was def replace_import(tokens: list[Token], i: int) -> None; now def replace_import(tokens: list[Token], i: int, node: ast.Import | ast.ImportFrom, new_stmts: list[str]) -> None. pypi.org - Signature changed
time_machine.cli.switch_to_marker
Was def switch_to_marker(tokens: list[Token], i: int, node: ast.Attribute) -> None; now def switch_to_marker(tokens: list[Token], i: int, node: ast.Attribute | ast.Name) -> None. pypi.org - Signature changed
time_machine.TimeMachineFixture.shift
Was def shift(self, delta: dt.timedelta | int | float) -> None; now def shift(self, delta: dt.timedelta | float) -> None. pypi.org - Signature changed
time_machine.Traveller.shift
Was def shift(self, delta: dt.timedelta | int | float) -> None; now def shift(self, delta: dt.timedelta | float) -> None. pypi.org
time-machine 3.5.1 breaking changes
- Removed
time_machine.cli.line_indent
time_machine.cli.line_indent was removed in time-machine 3.5.1 pypi.org
time-machine 3.5.0 breaking changes
- Signature changed
time_machine.cli.maybe_migrate_call
Was def maybe_migrate_call(ret: MutableMapping[Offset, list[TokenFunc]], node: ast.expr, *, freezegun_import_seen: bool, freeze_time_import_seen: bool, freezer_functions: list[FreezerFunction]) -> bool; now def maybe_migrate_call(ret... pypi.org - Signature changed
time_machine.cli.migrate_contents
Was def migrate_contents(contents_text: str) -> str; now def migrate_contents(contents_text: str) -> tuple[str, list[Report]]. pypi.org - Signature changed
time_machine.cli.replace_import_from
Was def replace_import_from(tokens: list[Token], i: int, node: ast.ImportFrom, keep: list[str]) -> None; now def replace_import_from(tokens: list[Token], i: int, node: ast.ImportFrom, new_stmts: list[str]) -> None. pypi.org - Signature changed
time_machine.cli.visit
Was def visit(tree: ast.Module) -> Mapping[Offset, list[TokenFunc]]; now def visit(tree: ast.Module) -> tuple[Mapping[Offset, list[TokenFunc]], list[Report]]. pypi.org
time-machine 3.4.0 breaking changes
- Signature changed
time_machine.cli.ast_start_offset
Was def ast_start_offset(node: ast.alias | ast.expr | ast.keyword | ast.stmt) -> Offset; now def ast_start_offset(node: ast.alias | ast.arg | ast.expr | ast.keyword | ast.stmt) -> Offset. pypi.org - Signature changed
time_machine.cli.maybe_migrate_call
Was def maybe_migrate_call(ret: MutableMapping[Offset, list[TokenFunc]], node: ast.expr, *, freezegun_import_seen: bool, freeze_time_import_seen: bool) -> None; now def maybe_migrate_call(ret: MutableMapping[Offset, list[TokenFunc]], node... pypi.org
time-machine 3.3.1 breaking changes
- Signature changed
time_machine.extract_timestamp_tzname
Was def extract_timestamp_tzname(destination: DestinationType) -> tuple[float, str | None]; now def extract_timestamp_tzname(destination: DestinationType) -> tuple[int, str | None]. pypi.org - Signature changed
time_machine.Traveller.__init__
Was def __init__(self, destination_timestamp: float, destination_tzname: str | None, tick: bool) -> None; now def __init__(self, destination_timestamp_ns: int, destination_tzname: str | None, tick: bool) -> None. pypi.org
time-machine 3.3.0 breaking changes
- Removed
time_machine.clock_gettime
time_machine.clock_gettime was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.clock_gettime_ns
time_machine.clock_gettime_ns was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.gmtime
time_machine.gmtime was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.localtime
time_machine.localtime was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.now
time_machine.now was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.strftime
time_machine.strftime was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.time
time_machine.time was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.time_ns
time_machine.time_ns was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.Traveller.time
Traveller.time was removed in time-machine 3.3.0 pypi.org - Removed
time_machine.utcnow
time_machine.utcnow was removed in time-machine 3.3.0 pypi.org
And 1 more in this version. Sign up to see every change
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
time-machine 3.1.0 breaking changes
- Removed
time_machine.uuid_generate_time_attr
time_machine.uuid_generate_time_attr was removed in time-machine 3.1.0 pypi.org - Removed
time_machine.uuid_generate_time_patcher
time_machine.uuid_generate_time_patcher was removed in time-machine 3.1.0 pypi.org
And 1 more in this version.
time-machine 3.0.0 breaking changes
- Removed
time_machine.coordinates_stack
time_machine.coordinates_stack was removed in time-machine 3.0.0 pypi.org - Removed
time_machine.TimeMachineFixture.coordinates
TimeMachineFixture.coordinates was removed in time-machine 3.0.0 pypi.org
And 4 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.