-1

i'm able to get UTC time that's the actually time. using:

datetime.now

I need to get the univeral utc not local here is the clock: https://time.is/es/UTC

1 Answers1

0

You should practically always use .now() with the UTC timezone

import datetime
datetime.datetime.now(tz=datetime.timezone.utc)

Refer to the comment on .utcnow() in the official docs

This takes from the system clock, so you'll need to make sure NTP is configured on your system

ti7
  • 16,375
  • 6
  • 40
  • 68
  • Hi ! what i need is the universal coordinate time which now is 3:52 you can check it here https://time.is/es/UTC – jorge avila May 07 '21 at 03:53