I need to know the equivalent syntax for [NSTimeZone timeZoneWithAbbreviation: @"GMT"] in swift
[NSTimeZone timeZoneWithAbbreviation: @"GMT"]
Here:
var formatter: NSDateFormatter = NSDateFormatter() formatter.timeZone = NSTimeZone(abbreviation: "GMT")