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”.