Only rely on datetime to generate timestamps, and not timeanddatetime.
This makes it easier for downstream projects to freeze time and get reproducible timestamps.
freezegun is a nice and easy way to do so, but I stuck to regular mocks for this PR to avoid a new dependency.
Only rely on
datetime
to generate timestamps, and nottime
anddatetime
.This makes it easier for downstream projects to freeze time and get reproducible timestamps.
freezegun
is a nice and easy way to do so, but I stuck to regular mocks for this PR to avoid a new dependency.With
freezegun
: