To tidy things up a bit, you could move the import to the top of the example and also import `timedelta` directly.