Search This Blog

Thứ Sáu, 24 tháng 11, 2017

Lấy ngày giờ hệ thống in IOS

let date = Date()
let calendar = Calendar.current
let hour = calendar.component(.hour, from: date)
let minutes = calendar.component(.minute, from: date)

Không có nhận xét nào:

Đăng nhận xét