Avatar
@swift-5.9.2 import Foundation extension Locale { public static var en_US_POSIX: Locale { Locale(identifier: "en_US_POSIX") } } extension Calendar { static var gregorian: Calendar { var cal = Calendar(identifier: .gregorian) cal.locale = Locale.en_US_POSIX cal.timeZone = TimeZone.current return cal } } let date = Calendar.gregorian.date(byAdding: .year, value: Int.min, to: Date(timeIntervalSince1970: 1616284800)) print(date as Any) (edited)