TemporalUnit
@available(*, deprecated, message: "This protocol will be removed in the future.")
public protocol TemporalUnit
Defines a common format for a TemporalSpec unit used in operations. It is a tuple
of Calendar.Component, such as .year, and an integer value. Those two are later
used in date operations such โ4 hours from nowโ and โ2 months agoโ.
View on GitHub