Temporal
public enum Temporal
Temporal is namespace to all temporal types and basic date operations. It can
not be directly instantiated.
Available Temporal Specs
- Temporal.Date
- Temporal.DateTime
- Temporal.Time
-
Temporal.Daterepresents aDatewith specific allowable formats..short=>yyyy-MM-dd.medium=>yyyy-MM-ddZZZZZ.long=>yyyy-MM-ddZZZZZ.full=>yyyy-MM-ddZZZZZ
See moreNote
.medium,.long, and.fullare the same date format.Declaration
Swift
struct Date : TemporalSpecextension Temporal.Date: Persistableextension Temporal.Date: DateUnitOperableextension Temporal.Date: Codableextension Temporal.Date: Comparable -
Temporal.DateTimerepresents aDateTimewith specific allowable formats..short=>yyyy-MM-dd'T'HH:mm.medium=>yyyy-MM-dd'T'HH:mm:ss.long=>yyyy-MM-dd'T'HH:mm:ssZZZZZ.full=>yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ
Declaration
Swift
struct DateTime : TemporalSpecextension Temporal.DateTime: Persistableextension Temporal.DateTime: DateUnitOperable, TimeUnitOperableextension Temporal.DateTime: Sendableextension Temporal.DateTime: Codableextension Temporal.DateTime: Comparable -
Temporal.Timerepresents aTimewith specific allowable formats..short=>HH:mm.medium=>HH:mm:ss.long=>HH:mm:ss.SSS.full=>HH:mm:ss.SSSZZZZZ
Declaration
Swift
struct Time : TemporalSpecextension Temporal.Time: Persistableextension Temporal.Time: Codableextension Temporal.Time: Comparableextension Temporal.Time: TimeUnitOperable
View on GitHub