Created
August 30, 2020 22:57
-
-
Save thecrypticace/c3496c1d6c33f4f7c152e50e17dc921f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swift | |
import Foundation | |
let df = DateFormatter() | |
df.locale = Locale(identifier: "en_US") | |
df.timeZone = TimeZone(identifier: "Antarctica/Casey") | |
df.setLocalizedDateFormatFromTemplate("zzzz") | |
print("\(String(describing: df.timeZone))") | |
print(df.string(from: Date())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment