I want to get access to the user-friendly Time Zone list that appears in the Settings > General > Date & Time. Can someone help in providing the code for this?
Settings > General > Data & Time > Time Zone (Selection)
The price of the Singapore MRT depends on the distance travelled. It varies between 1.50 SGD ( US$ 1.10) and 2.50 SGD ( US$ 1.80) per journey. If you want to save on transport, the best option is the EZ-Link card or the Singapore Tourist Pass.
To get to the city, take the train from Changi Airport MRT Station (CG2) to Tanah Merah MRT Station (EW4), then transfer to the East West Line towards Tuas Link MRT Station (EW33).
Train Operation Hours and Frequency5.30am to around midnight daily. Operating hours are usually extended during festive periods.
Swift 4
Get the current user time zone:
let currentTimeZone = TimeZone.current
Get all time zones:
let timeZoneIdentifiers = TimeZone.knownTimeZoneIdentifiers
Create time zone with identifier:
let berlin = TimeZone(identifier: "Europe/Berlin")!
Get city name of time zone:
let cityName = berlin.identifier.split(separator: "/").last!
Get all city names:
let allCities = timeZoneIdentifiers.compactMap { identifier in
return identifier.split(separator: "/").last
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With