Avatar
Avatar
417_72ki
@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)
exit status: 132 with Stack dump: 0. Program arguments: /usr/bin/swift-frontend -frontend -interpret - -disable-objc-interop -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -module-name main -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins 1. Swift version 5.9.2 (swift-5.9.2-RELEASE)
5.59 KB