(time.time()-start_time)<max_time in python code example
Example: python - oordinated universal time
from datetime import datetime, timezone
print(datetime.now()) # timezone
print(datetime.now(timezone.utc)) # coordinated universal time