Day
public struct Day : NumericType, CustomStringConvertible
The Day is a number representing an Earth day.
-
The Day value
Declaration
Swift
public let value: Double
-
Returns a Day struct initialized to contain the given value.
Declaration
Swift
public init(_ value: Double)
Parameters
value
The value for the new Day.
-
Transform the current Day value into Hours.
Declaration
Swift
public var inHours: Hour { get }
-
Transform the current Day value into Minutes.
Declaration
Swift
public var inMinutes: Minute { get }
-
Transform the current Day value into Seconds.
Declaration
Swift
public var inSeconds: Second { get }
-
Transform the current Day value into Julian Days (convenient for easily making operations with Julian Day fractions).
Declaration
Swift
public var inJulianDays: JulianDay { get }
-
The standard description of the Day
Declaration
Swift
public var description: String { get }