struct TimeOfDayextension TimeOfDay : AutomationValue, Copyable, Decodable, Encodable, Equatable, Equatable, Escapable, Hashable, Hashable, Sendable, Sendable, StructDataRepresentableRepresents a time of day. The date and time zone are either not significant or are specified elsewhere.
-
The time of midnight at the start of the day, ‘00:00’.
Declaration
Swift
static let midnight: TimeOfDay -
The time of noon at the start of the day, ‘12:00’.
Declaration
Swift
static let noon: TimeOfDay -
The maximum supported
TimeOfDay‘23:59:59.999999999’.This is the time just before midnight at the end of the day.
Declaration
Swift
static let max: TimeOfDay -
Undocumented
Declaration
Swift
let hours: Int32 -
Undocumented
Declaration
Swift
let minutes: Int32 -
Undocumented
Declaration
Swift
let seconds: Int32 -
Undocumented
Declaration
Swift
let nanos: Int32 -
Initializes the time of day with the hours, minutes, seconds and nanos.
Declaration
Swift
init(hours: Int32, minutes: Int32, seconds: Int32 = 0, nanos: Int32 = 0)Parameters
hoursThe hours of the time of day.
minutesThe minutes of the time of day.
secondsThe seconds of the time of day.
nanosThe nanos of the time of day.
-
Initializes
TimeOfDaywith the trait decoder.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe trait decoder to decode the time of day.
-
Encodes
TimeOfDayto the trait encoder.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
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
init(from decoder: any Decoder) throws