time-machineEasy Playground

Fast datetime mocking (C extension, faster than freezegun)

Getting started with time-machineRun locally
Install
pip install time-machine
Python 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?