import datetime
import time
def timeLondon():
while True:
time.sleep(1)
if datetime.datetime.now().time() >= datetime.time(8,32):
print('Лондон')
else:
print('Америка')
timeLondon()
import datetime
now = datetime.datetime.now()
time1 = datetime.time(hour=5, minute=0, second=0, microsecond=0, tzinfo=None)
while True:
if nowe > time1:
print("Alert")