from zoneinfo import ZoneInfo # Built-in from Python 3.9+
from datetime import datetime as dt, UTC
Idea - ForResNet (coming soon)
ForResNet
# 11PM Brisbane Time converted to UTC
= ZoneInfo("Australia/Brisbane")
brisbane_tz = dt.now(brisbane_tz).replace(hour=23, minute=0, second=0, microsecond=0)
daily_time_brisbane
# Convert to UTC
= daily_time_brisbane.astimezone(UTC) daily_time_utc
brisbane_tz
zoneinfo.ZoneInfo(key='Australia/Brisbane')
import pytz