0

I’m looking for a Pythonic way to wait/sleep until 5 seconds after midnight UTC. Server time is already set to UTC. I thought the most elegant way would be simply through pause & datetime, but datetime requires a mandatory date, as far as I understand. And I don’t want a specific date at all.

Like this, just without the date, only time.

import pause, datetime
dt = datetime.datetime(2013, 6, 2, 14, 36, 34, 383752)
pause.until(dt)
MegaIng
  • 7,361
  • 1
  • 22
  • 35
BluebayX
  • 15
  • 3
  • I've posted an answer here that specifically solves your problem using I believe a more pythonic approach than the existing answers: https://stackoverflow.com/a/75791690/5428609 – laker93 Mar 20 '23 at 14:43

0 Answers0