SyntaxFix
Write A Post
Hire A Developer
Questions
in Swift 5
extension Date { static var currentTimeStamp: Int64{ return Int64(Date().timeIntervalSince1970 * 1000) } }
call like this:
let timeStamp = Date.currentTimeStamp print(timeStamp)
Thanks @lenooh