freezegunEasy Playground

Mock datetime for testing time-dependent code

Getting started with freezegunRun locally
Install
pip install freezegun
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: freezegun)

freezegun is a third-party package. Mock datetime for testing time-dependent code. Install with: pip install freezegun

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?