Is there a way to get a POSIX TimeZone string from the TimeZone data in Swift?
I’ve looked into the TimeZone functions (isDaylightSaving(),nextDaylightSavingTimeTransition(), daylightSavingTimeOffset()) but they don’t quite give me enough information to convert it into something like TZ=CST6CDT,M3.2.0/2:00:00,M11.1.0/2:00:00.
I.e. I am missing what the general occurrence of DST is, for example the last Sunday in March, rather than the specific next date that nextDalightSavingTimeTransition() gives me.
Would it be a case of just getting a list of TimeZone identifiers against their POSIX TimeZone string, hardcoded in an array/dictionary?




