time-machine — Easy Playground
Fast datetime mocking (C extension, faster than freezegun)
Getting started with time-machineRun locally
Install
pip install time-machinePython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: time_machine)
time-machine is a third-party package. Fast datetime mocking (C extension, faster than freezegun). Install with: pip install time-machine
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?