Answers for "get current timestamp swift"

3

swift get current time

let date = Date()
let calendar = Calendar.current
let hour = calendar.component(.hour, from: date)
let minutes = calendar.component(.minute, from: date)
Posted by: Guest on February-24-2020
0

get current unix timestamp swift ios

Date().timeIntervalSince1970 // Double
Posted by: Guest on June-18-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language