Dealing with Timezones and Unix Timestamp | Python Datetime | Python30 | Day 4

preview_player
Показать описание
On Day 4 of the #Python30 course, we will discuss techniques to deal with timezones and Unix timestamp using pytz and the datetime module in python.

Once you are done with the video, make sure to check out the GitHub repo for solving the questions associated with timezones and Unix timestamp methods. This will really help you master the concepts and build confidence in this topic.

#Python30 Github Repository :-

For more description on the #Python30 course, check out the above Github Repository.

My blog on Mastering Python datetime -

List of timezone database names -

Check out my website -

Check out my facebook page -

Check out my twitter handle -
Рекомендации по теме
Комментарии
Автор

Been looking for some other videos and by far this is the most simplest and straightforward video thank you!

albertcabanday
Автор

Thank you very much for this video :) It was very helpful and I learnt a lot! :)

tymothylim
Автор

Thanks a lot for this video. It saved my day.

ArunKumar-xwiw
Автор

Amazing. Thank you a lot for the video.

Leonardo-jvls
Автор

Short and crisp... And informative as well.. Keep it up

chinmayeemuduli
Автор

Спасибо большое, ваше видео очень помогло!

шмяка
Автор

do we need to localize naive datetime to use it as timezone aware in python 3.9

rajgiriyt
Автор

Thank you, Nice information. how to calculate date and time from specific date instead of 01-01-1970.

eshivaprasad
Автор

Can we convert Date column in dataframe to Unix time??

hrishikeshmohite
Автор

i had this 19 indexs are there in unix datetime format how to solve it

saitarun
Автор

import datetime as dt
import pytz
time_st ="13:00"
from_zone = pytz.timezone("Etc/GMT")
to_zone = pytz.timezone('Asia/Kolkata')
time_utc = dt.datetime.strptime(time_st, '%H:%M')
local_utc = from_zone.localize(time_utc, is_dst=True)
new_time = local_utc.astimezone(to_zone)




Output:-
13:00
18:53
Expected output:-
13:00
18:30
Please if anyone can help

theanimeguy