now.py 172 B

1234567
  1. from datetime import datetime
  2. from datetime import timezone
  3. def now():
  4. # this function is there so that we can mock it in tests
  5. return datetime.now(timezone.utc)