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

Опубликовано: 01 Ноябрь 2024
на канале: The Python Oracle
2
0

--------------------------------------------------
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/4...

--

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

--

Tags
#python #datetime #date #timezone

#avk47