Period

Read Microsoft's intraday stock price

Two types of datetimes in python
Naive (no timezone awareness)
Timezone aware datetime
Convert naive DatetimeIndex to timezone aware DatetimeIndex using tz_localize
Convert to Berlin time using tz_convert
All time zones

Using timezones in date_range
timezone using pytz
timezone using dateutil
Pandas documentation indicates that difference between pytz timezone and dateutil timezones is
In pytz you can find a list of common (and less common) time zones using from pytz import common_timezones, all_timezones
dateutil uses the OS timezones so there isn’t a fixed list available. For common zones, the names are the same as pytz
Last updated
Was this helpful?