Period

public struct Period

Undocumented

  • Gets the year field.

    Declaration

    Swift

    public var year: Int { get set }
  • Gets the month-of-year field from 1 to 12.

    Declaration

    Swift

    public var month: Int { get set }
  • day

    Gets the day-of-month field.

    Declaration

    Swift

    public var day: Int { get set }
  • Gets the hour-of-day field.

    Declaration

    Swift

    public var hour: Int { get set }
  • Gets the minute-of-hour field.

    Declaration

    Swift

    public var minute: Int { get set }
  • Gets the second-of-minute field.

    Declaration

    Swift

    public var second: Int { get set }
  • Gets the nano-of-second field.

    Declaration

    Swift

    public var nano: Int { get set }
  • Period

    Declaration

    Swift

    public static func + (lhs: Period, rhs: Period) -> Period
  • Undocumented

    Declaration

    Swift

    public static func += (lhs: inout Period, rhs: Period)
  • Undocumented

    Declaration

    Swift

    public static func - (lhs: Period, rhs: Period) -> Period
  • Undocumented

    Declaration

    Swift

    public static func -= (lhs: inout Period, rhs: Period)
  • LocalDateTime

    Declaration

    Swift

    public static func + (lhs: LocalDateTime, rhs: Period) -> LocalDateTime
  • Undocumented

    Declaration

    Swift

    public static func += (lhs: inout LocalDateTime, rhs: Period)
  • Undocumented

    Declaration

    Swift

    public static func - (lhs: LocalDateTime, rhs: Period) -> LocalDateTime
  • Undocumented

    Declaration

    Swift

    public static func -= (lhs: inout LocalDateTime, rhs: Period)
  • ZonedDateTime

    Declaration

    Swift

    public static func + (lhs: ZonedDateTime, rhs: Period) -> ZonedDateTime
  • Undocumented

    Declaration

    Swift

    public static func += (lhs: inout ZonedDateTime, rhs: Period)
  • Undocumented

    Declaration

    Swift

    public static func - (lhs: ZonedDateTime, rhs: Period) -> ZonedDateTime
  • Undocumented

    Declaration

    Swift

    public static func -= (lhs: inout ZonedDateTime, rhs: Period)
  • Creates an instance of LocalDateTime from year, month, day, hour, minute, second and nanosecond.

    Declaration

    Swift

    public init(year: Int = 0, month: Int = 0, day: Int = 0, hour: Int = 0, minute: Int = 0, second: Int = 0, nano: Int = 0)
  • Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

    Declaration

    Swift

    public static func < (lhs: Period, rhs: Period) -> Bool
  • Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

    Declaration

    Swift

    public static func > (lhs: Period, rhs: Period) -> Bool
  • Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

    Declaration

    Swift

    public static func <= (lhs: Period, rhs: Period) -> Bool
  • Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

    Declaration

    Swift

    public static func >= (lhs: Period, rhs: Period) -> Bool
  • The hash value.

    Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution.

    Declaration

    Swift

    public var hashValue: Int { get }
  • Returns a Boolean value indicating whether two values are equal.

    Declaration

    Swift

    public static func == (lhs: Period, rhs: Period) -> Bool
  • A textual representation of this instance.

    Declaration

    Swift

    public var description: String { get }
  • A textual representation of this instance, suitable for debugging.

    Declaration

    Swift

    public var debugDescription: String { get }
  • The custom mirror for this instance.

    If this type has value semantics, the mirror should be unaffected by subsequent mutations of the instance.

    Declaration

    Swift

    public var customMirror: Mirror { get }
  • Returns the custom playground description for this instance.

    If this type has value semantics, the instance returned should be unaffected by subsequent mutations if possible.

    Declaration

    Swift

    public var playgroundDescription: Any { get }
  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes this value into the given encoder.

    If the value fails to encode anything, encoder will encode an empty keyed container in its place.

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.