I need to get three/four letter abbreviation for the country called 'Africa/Nairobi', I have tried using
print(TimeZone(abbreviation: "SAST")?.identifier) from the NSTimeZone.abbreviationDictionary, results nil.
How to get the three/four letter abbreviations for this country 'Africa/Nairobi'. Thanks in Advance
You can get a full standard localized name of timezone by the following method.
Will give you following output
I think now you get easily get EAT form East Africa Time by spliting and combining string
Will give you out put