Handling Multiple Timezones in Python

preview_player
Показать описание
Today we learn how to handle multiple timezones in Python using pytz.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

These videos are really practical

They represent concepts that you'd have to dig around to gather examples on but instead you wrap them up in good examples

stultuses
Автор

THANK YOU! I was really struggling to do some timezone conversions and couldnt figure out why I was getting such weird results (the minutes were changing too). This method worked for me!

Fanta
Автор

buddy, this is the best tutorial on the TZ and DT objekt in youtube! Thank you for the video! Gret job!

vladepast
Автор

Nicely explained. very clear with examples.

rohitkumarchoudhary
Автор

Trying for the love of all things binary to strip this down to only time. So 2022-04-06 00:29:32.681305+00:00 would become 00:29:32. Any idea?

TomKnudsen
Автор

hi @neuralnine do you have a course of buiding a crypto bot like arbitrage bot with two exchanges or pancake swap sniping bot ?

samuelnqai
Автор

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

CWShuva