DateTime

public struct DateTime : TemporalSpec
extension Temporal.DateTime: Persistable
extension Temporal.DateTime: DateUnitOperable, TimeUnitOperable
extension Temporal.DateTime: Sendable
extension Temporal.DateTime: Codable
extension Temporal.DateTime: Comparable

Temporal.DateTime represents a DateTime with 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