Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

convert secondsfrom1970 to date swift

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
"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #swift
ADD COMMENT
Topic
Name
6+6 =