How do I get a value of datetime.today() in Python that is "timezone aware"?

How do I get a value of datetime.today() in Python that is "timezone aware"?

The Python Oracle

54 года назад

2 Просмотров

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping

--

Chapters
00:00 How Do I Get A Value Of Datetime.Today() In Python That Is "Timezone Aware"?
00:44 Accepted Answer Score 509
02:08 Answer 2 Score 197
02:22 Answer 3 Score 191
03:41 Answer 4 Score 48
04:04 Answer 5 Score 21
04:46 Thank you

--

Full question
https://stackoverflow.com/questions/4530069/how-do-i-get-a-value-of-datetime-today-in-python-that-is-timezone-aware

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/licensing

--

Tags
#python #datetime #date #timezone

#avk47

Тэги:

#date #datetime #python #timezone
Ссылки и html тэги не поддерживаются


Комментарии: