Swift获取次日凌晨的时间戳
2019-03-12 本文已影响0人
向日葵的夏天_summer
let calendar = NSCalendar.current
var componts = calendar.dateComponents([.weekday, .year, .month, .day], from: Date())
componts.day = componts.day! + 1
let tomorrowInterval = calendar.date(from: componts)?.timeIntervalSince1970