time-machineAdvanced Examples

Fast datetime mocking (C extension, faster than freezegun)

Advanced time-machine techniques

Advanced usage and configuration of time-machine.

python
# Install: pip install time-machine
import time_machine

# Advanced time-machine configuration and usage
print("time-machine advanced patterns")

These advanced techniques unlock the full power of time-machine.

Want to try these examples interactively?

Open Advanced Playground