I have a UTC date timezone aware, and I would like to add/substract hours which are UTC aware (+/- hours from GMT/UTC). Meaning -4:00 hours are 4 hours behind UTC date time etc. I'm running the bellow code which is working, but it feels like there is a better way. Please confirm/infirm.
PS: I saw a few urls with examples showing how to change the time zone which I want to avoid because of DST.
from datetime import datetime, timedelta
import pytz
# Date aware of time zone
today_date = datetime.today().utcnow().replace(hour=0, minute=0, second=0, microsecond=0, tzinfo=pytz.UTC)
print(today_date)
# UTC datetime (-) Hours from is defined as:
time_zone_to_utc_suffix: str = '-4:00' # I receive the data in str
time_zone_to_utc_hours:int = int(time_zone_to_utc_suffix.split(':')[0])
#### THE PART I FEEL CAN BE IMPROVED ######
result_date_adjusted_into_utc = today_date + timedelta(hours=time_zone_to_utc_hours)
print(f'Date adjusted by {time_zone_to_utc_hours} hours, is {result_date_adjusted_into_utc}')
Tx