Question : swift string time to epoch
Answered by : horned-rattlesnake
let date = NSDate() // current date
let unixtime = date.timeIntervalSince1970
Source : https://riptutorial.com/ios/example/6436/get-unix-epoch-time | Last Update : Fri, 03 Apr 20
Question : convert secondsfrom1970 to date swift
Answered by : blue-beetle-wrnsa08z05uj
let epochTime = TimeInterval(1429162809359) / 1000
let date = Date(timeIntervalSince1970: epochTime) // "Apr 16, 2015, 2:40 AM"
print("Converted Time \(date)") // "Converted Time 2015-04-16 05:40:09 +0000\n"
Source : https://stackoverflow.com/questions/29670585/how-to-convert-unix-epoc-time-to-date-and-time-in-ios-swift | Last Update : Fri, 19 Jun 20
Question : convert secondsfrom1970 to date swift
Answered by : blue-beetle-wrnsa08z05uj
var epocTime = NSTimeInterval(1429162809359)
let myDate = NSDate(timeIntervalSince1970: epocTime)
println("Converted Time \(myDate)")
Source : https://stackoverflow.com/questions/29670585/how-to-convert-unix-epoc-time-to-date-and-time-in-ios-swift | Last Update : Fri, 19 Jun 20