0
How can I transform the Date
for seconds? The code I’m trying to implement is this:
let dataAtual = Date()
var calendar = Calendar.current
if let timeZone = TimeZone(identifier: "BRT") {
calendar.timeZone = timeZone
}
0
How can I transform the Date
for seconds? The code I’m trying to implement is this:
let dataAtual = Date()
var calendar = Calendar.current
if let timeZone = TimeZone(identifier: "BRT") {
calendar.timeZone = timeZone
}
Browser other questions tagged ios swift
You are not signed in. Login or sign up in order to post.
Seconds since when? Since an arbitrary date, an "epoch", or would the number of seconds of the current day? I use the Date.timeIntervalSince1970 property when I need the Unix-style Timestamp number of seconds.
– epx