struct TimeOfDay
extension TimeOfDay : AutomationValue, Copyable, Decodable, Encodable, Equatable, Escapable, Hashable, Sendable, Sendable, StructDataRepresentable
Represents 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
hours
The hours of the time of day.
minutes
The minutes of the time of day.
seconds
The seconds of the time of day.
nanos
The nanos of the time of day.
-
Initializes
TimeOfDay
with the trait decoder.Declaration
Swift
init(decoder: TraitDecoder) throws
Parameters
decoder
The trait decoder to decode the time of day.
-
Encodes
TimeOfDay
to 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