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
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
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