“python obtenha tempo utc” Respostas de código

python obtenha tempo utc

from datetime import datetime

# time_in_utc variable will be the utc time 
time_in_utc = datetime.utcnow()

# If you want to make it more fancier:
formatted_time_in_utc = time_in_utc.strftime("%d/%m/%Y %H:%M:%S")
Random boi

Python - tempo universal oordinado

from datetime import datetime, timezone
print(datetime.now())              # timezone
print(datetime.now(timezone.utc))  # coordinated universal time 
Andrea Perlato

Respostas semelhantes a “python obtenha tempo utc”

Perguntas semelhantes a “python obtenha tempo utc”

Mais respostas relacionadas para “python obtenha tempo utc” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código