Sesame-iOS/Sesame-Watch Watch App/Date+Extensions.swift
2023-08-07 15:57:09 +02:00

13 lines
224 B
Swift

import Foundation
extension Date {
var timestamp: UInt32 {
UInt32(timeIntervalSince1970.rounded())
}
init(timestamp: UInt32) {
self.init(timeIntervalSince1970: TimeInterval(timestamp))
}
}