Time

public struct Time : TemporalSpec
extension Temporal.Time: Persistable
extension Temporal.Time: Codable
extension Temporal.Time: Comparable
extension Temporal.Time: TimeUnitOperable

Temporal.Time represents a Time with specific allowable formats.

  • .short => HH:mm
  • .medium => HH:mm:ss
  • .long => HH:mm:ss.SSS
  • .full => HH:mm:ss.SSSZZZZZ
  • Declaration

    Swift

    public let foundationDate: Foundation.Date
  • Declaration

    Swift

    public static func now() -> Temporal.Time
  • Declaration

    Swift

    public init(_ date: Foundation.Date)
  • Declaration

    Swift

    public static var iso8601DateComponents: Set<Calendar.Component> { get }