---
title: "time-machine 3.6.0 Breaking Changes on PyPI | Since.dev"
description: "What each time-machine release removed, renamed or changed: 35 breaking changes in 8 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/time-machine
last_updated: 2026-12-04
---

# time-machine breaking changes

time-machine 3.6.0 (October 25, 2026) is its newest release with breaking changes, 6 of them. The first: Removed time_machine.cli.replace_aliased_import. Every breaking API change we have recorded in time-machine on PyPI: 35 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.6.0`, released October 25, 2026. [Source repository](https://github.com/adamchainz/time-machine)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [3.6.0](#v-3-6-0): 29 breaking changes in 7 versions.

## time-machine 3.6.0 breaking changes

time-machine 3.6.0, released October 25, 2026: 6 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](https://pypi.org/project/time-machine/3.6.0/)
- **Removed** `time_machine.cli.replace_import_from`  

time_machine.cli.replace_import_from was removed in time-machine 3.6.0 [pypi.org](https://pypi.org/project/time-machine/3.6.0/)
- **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](https://pypi.org/project/time-machine/3.6.0/)
- **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](https://pypi.org/project/time-machine/3.6.0/)
- **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](https://pypi.org/project/time-machine/3.6.0/)
- **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](https://pypi.org/project/time-machine/3.6.0/)

## time-machine 3.5.1 breaking changes

time-machine 3.5.1, released September 8, 2026: 1 breaking change.

- **Removed** `time_machine.cli.line_indent`  

time_machine.cli.line_indent was removed in time-machine 3.5.1 [pypi.org](https://pypi.org/project/time-machine/3.5.1/)

## time-machine 3.5.0 breaking changes

time-machine 3.5.0, released August 25, 2026: 4 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](https://pypi.org/project/time-machine/3.5.0/)
- **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](https://pypi.org/project/time-machine/3.5.0/)
- **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](https://pypi.org/project/time-machine/3.5.0/)
- **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](https://pypi.org/project/time-machine/3.5.0/)

## time-machine 3.4.0 breaking changes

time-machine 3.4.0, released August 10, 2026: 2 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](https://pypi.org/project/time-machine/3.4.0/)
- **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](https://pypi.org/project/time-machine/3.4.0/)

## time-machine 3.3.1 breaking changes

time-machine 3.3.1, released August 4, 2026: 2 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](https://pypi.org/project/time-machine/3.3.1/)
- **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](https://pypi.org/project/time-machine/3.3.1/)

## time-machine 3.3.0 breaking changes

time-machine 3.3.0, released July 31, 2026: 11 breaking changes.

- **Removed** `time_machine.clock_gettime`  

time_machine.clock_gettime was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.clock_gettime_ns`  

time_machine.clock_gettime_ns was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.gmtime`  

time_machine.gmtime was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.localtime`  

time_machine.localtime was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.now`  

time_machine.now was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.strftime`  

time_machine.strftime was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.time`  

time_machine.time was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.time_ns`  

time_machine.time_ns was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.Traveller.time`  

Traveller.time was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)
- **Removed** `time_machine.utcnow`  

time_machine.utcnow was removed in time-machine 3.3.0 [pypi.org](https://pypi.org/project/time-machine/3.3.0/)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### time-machine 3.1.0 breaking changes

time-machine 3.1.0, released November 21, 2025: 3 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](https://pypi.org/project/time-machine/3.1.0/)
- **Removed** `time_machine.uuid_generate_time_patcher`  

time_machine.uuid_generate_time_patcher was removed in time-machine 3.1.0 [pypi.org](https://pypi.org/project/time-machine/3.1.0/)

And 1 more in this version.

### time-machine 3.0.0 breaking changes

time-machine 3.0.0, released November 18, 2025: 6 breaking changes.

- **Removed** `time_machine.coordinates_stack`  

time_machine.coordinates_stack was removed in time-machine 3.0.0 [pypi.org](https://pypi.org/project/time-machine/3.0.0/)
- **Removed** `time_machine.TimeMachineFixture.coordinates`  

TimeMachineFixture.coordinates was removed in time-machine 3.0.0 [pypi.org](https://pypi.org/project/time-machine/3.0.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
