Skip to content

Instantly share code, notes, and snippets.

@thecrypticace
Created August 30, 2020 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecrypticace/c3496c1d6c33f4f7c152e50e17dc921f to your computer and use it in GitHub Desktop.
Save thecrypticace/c3496c1d6c33f4f7c152e50e17dc921f to your computer and use it in GitHub Desktop.
#!/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