Python 3.9: Construct DST valid timestamp using standard library
问题 I would like to contruct DST-valid timestamps only using the standard library in Python 3.9 and was hoping this was possible with this version. In my timezone "Europe/Berlin", the DST crossings for 2020 are: 2020-03-29 at 02:00 the clock switches to 03:00 (there is no hour 2!) 2020-10-25 at 03:00 the clock switches back to 02:00 (the hour 2 exists two times!) My script yields the following output: MARCH 2020-03-29 01:59:00+01:00 CET plus 1 h: 2020-03-29 02:59:00+01:00 CET (should be 03:59:00