Instance Propertyswift 6.0.1Swift
description
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
var description: String { get }
Other members in extension
Type members
init(from: any Decoder
) throws init(secondsComponent: Int64, attosecondsComponent: Int64
) Construct a
Duration
by adding attoseconds to a seconds value.static var zero: Duration
static func microseconds(Double
) -> Duration Construct a
Duration
given a number of seconds microseconds as aDouble
by converting the value into the closest attosecond scale value.static func microseconds<T>(T
) -> Duration Construct a
Duration
given a number of microseconds represented as aBinaryInteger
.static func milliseconds(Double
) -> Duration Construct a
Duration
given a number of seconds milliseconds as aDouble
by converting the value into the closest attosecond scale value.static func milliseconds<T>(T
) -> Duration Construct a
Duration
given a number of milliseconds represented as aBinaryInteger
.static func nanoseconds<T>(T
) -> Duration Construct a
Duration
given a number of nanoseconds represented as aBinaryInteger
.static func seconds(Double
) -> Duration Construct a
Duration
given a number of seconds represented as aDouble
by converting the value into the closest attosecond scale value.static func seconds<T>(T
) -> Duration Construct a
Duration
given a number of seconds represented as aBinaryInteger
.static func * (lhs: Duration, rhs: Double
) -> Duration static func * <T>(lhs: Duration, rhs: T
) -> Duration static func *= <T>(lhs: inout Duration, rhs: T
) static func + (lhs: Duration, rhs: Duration
) -> Duration static func += (lhs: inout Duration, rhs: Duration
) static func - (lhs: Duration, rhs: Duration
) -> Duration static func -= (lhs: inout Duration, rhs: Duration
) static func / (lhs: Duration, rhs: Double
) -> Duration static func / <T>(lhs: Duration, rhs: T
) -> Duration static func / (lhs: Duration, rhs: Duration
) -> Double static func /= (lhs: inout Duration, rhs: Double
) static func /= <T>(lhs: inout Duration, rhs: T
) static func < (lhs: Duration, rhs: Duration
) -> Bool static func == (lhs: Duration, rhs: Duration
) -> Bool
Instance members
var components: (seconds: Int64, attoseconds: Int64)
The composite components of the
Duration
.func encode(to: any Encoder
) throws func hash(into: inout Hasher
)