-1

I would want to get current UTC time formatted to HH:MM:SS. What is the easiest way to do it?

Viljami
  • 639
  • 7
  • 15

1 Answers1

-1
from datetime import datetime

datetime.utcnow().strftime("%H:%M:%S")

(answer updated and improved thanks for comments)

Viljami
  • 639
  • 7
  • 15