Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift get current hour

let hour = Calendar.current.component(.hour, from: Date())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #current #hour
ADD COMMENT
Topic
Name
6+5 =