I'm trying to convert some old c++ code to rust but I'm lacking some information about the timezones. For instance:
- when does DST start and end for a certain timezone?
- how big is the offset for DST?
I know I can get offset from UTC if I have some datetime but I would prefer if I wouldn't have to iterate through all days of year and then hours of that day to find when does a certain DST start or end. I see c++ boost has these methods, is there a way to extract this information? From what I can see in boos code they are extracting this data from some string but I didn't find what they are parsing.
I need stuff like dst_offset https://github.com/dials/boost/blob/master/boost/date_time/local_time/posix_time_zone.hpp#L177 and dst_local_start_time https://github.com/dials/boost/blob/master/boost/date_time/local_time/posix_time_zone.hpp#L152