let commenttime = "\(dict["newsoccurrencetime"]!)"
let timestampIntInMsec = Int.init(commenttime)
let timestampDoubleInSec:Double = Double(timestampIntInMsec!)/1000
print("timestampDoubleInSec=\(timestampDoubleInSec)")
let parsedDate:NSDate = NSDate(timeIntervalSince1970: TimeInterval(timestampDoubleInSec))
print("parsedDate=\(parsedDate)")
let date = "\(parsedDate)".substring(to: 10)
网友评论