我需要知道[NSTimeZone timeZoneWithAbbreviation: @"GMT"]的等效语法
发布于 2014-11-09 18:45:52
在此:
var formatter: NSDateFormatter = NSDateFormatter()
formatter.timeZone = NSTimeZone(abbreviation: "GMT")发布于 2017-10-19 05:44:44
Swift 3
let dateFormatterUTC = DateFormatter()
dateFormatterUTC.timeZone = TimeZone(abbreviation: "UTC")https://stackoverflow.com/questions/26830786
复制相似问题