我有一个关于 Swift 类型时区的问题。我需要获取 UTC0 时区来格式化我的 Date 对象。我正在创建这样的 TimeZone 对象。
let utcTimeZone = TimeZone(abbreviation: "UTC")
但是当创建这个对象给我 GMT0 时区。这有可能在 Swift 中获得 UTC0 时区吗?还有GMT (fixed)和 GMT (GMT) offset 0在操场上有什么区别?
GMT (fixed)
GMT (GMT) offset 0
Xcode 10.3 游乐场
xcode timezone utc gmt swift
gmt ×1
swift ×1
timezone ×1
utc ×1
xcode ×1