Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
 
PREVIOUS NEXT
Tagged: #swift #current #time
ADD COMMENT
Topic
Name
4+8 =