Timzone aware date time in Python | (zoneinfo & pytz)

Опубликовано: 16 Ноябрь 2024
на канале: edRevolution Tech
791
12

The world is having more than 500 time zones. Working with them is a complex task. Libraries like #zoneinfo & #pytz, with #datetime_module, make working with them really easy.

Link for datetime module to understand local/naive datetime objects:
   • DateTime module in Python 3.10     | ...  

This module will cover up :

Timestamps:
00:00 Introduction
01:05 conceptual understanding of timezone aware datetime objects
03:35 practical understanding of timezone aware datetime objects
04:45 Timezone (Zoneinfo objects) from zoneinfo library
09:10 Get current time of any country/time zone
10:35 convert one time zone time into another timezone time (astimezone)
12:00 convert local datetime object into aware datetime object (localize)
13:55 country wise timezone strings