Answers for "ios swift convert time"

0

swift string time to epoch

let date = NSDate() // current date
let unixtime = date.timeIntervalSince1970
Posted by: Guest on March-27-2020
0

convert secondsfrom1970 to date swift

var epocTime = NSTimeInterval(1429162809359)

let myDate = NSDate(timeIntervalSince1970: epocTime)
println("Converted Time \(myDate)")
Posted by: Guest on June-12-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language