fork download
  1. import datetime
  2. import time
  3. dt = datetime.datetime.now()
  4. print(dt.hour)
  5. print(dt.minute)
  6. print("IN")
  7. while True:
  8. dt = datetime.datetime.now()
  9. if dt.hour == 17 and dt.minute == 0:
  10. break
  11. time.sleep(1)
  12. print("OUT")
  13. dt = datetime.datetime.now()
  14. print(dt.hour)
  15. print(dt.minute)
  16.  
Time limit exceeded #stdin #stdout 5s 9172KB
stdin
Standard input is empty
stdout
Standard output is empty