-1

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

Viljami
  • 373
  • 3
  • 10

1 Answers1

-1
from datetime import datetime

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

(answer updated and improved thanks for comments)

Viljami
  • 373
  • 3
  • 10