title: How to set a datetime object "DST enabled" in python?
body: <p>For example if there is a time str like &quot;2022-09-30T15:00:00+00:00&quot; and I'd like to convert it to datetime object in timezone &quot;UTC+XX:XX&quot;, then I can do it by the .astimezone() function.</p>
  <p>But what if this timezone is DST(daylight savings time) enabled?
  I tried to set the datetime object generated above to &quot;DST enabled&quot; but I didn't find the interface to do it. Is it possible to set the timezone of a datetime object to &quot;DST enabled&quot; by some function?</p>
  <p>I've found some other solution using pytz, but it doesn't work for my problem because all the info I have is something like &quot;UTC+XX:XX&quot;, not the region name of the timezone like &quot;US/Central&quot; needed by pytz interface.</p>
  <p>Thanks in advance.</p>