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
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
本文标题:Swift获取次日凌晨的时间戳
本文链接:https://www.haomeiwen.com/subject/kpygpqtx.html
网友评论