SCKDayPoint
public struct SCKDayPoint
A type that represents an abstract time point within a day.
-
Convenience initializer. Creates a new SCKDayPoint object with hour, minute and second extracted from an Date object.
Declaration
Swift
public init(date: Date)Parameters
dateThe Date object from which to get h/m/s parameters.
Return Value
The initialized SCKDayPoint.
-
Initializes a new
SCKDayPointobject with hour, minute and second set to the specified values. If any parameter is less than 0 or more than 60, it gets passed to the higher unit if possible.Declaration
Swift
public init(hour: Int, minute: Int, second: Int)Parameters
hourThe point’s hour.
minuteThe point’s minute. If less than 0 or greater than 60 it gets passed to hour.
secondThe point’s second. If less than 0 or greater than 60 it gets passed to minute.
Return Value
The initialized SCKDayPoint.
-
Initializes a new
SCKDayPointobject with hour, minute and second set to the specified values. If any parameter is less than 0 or more than 60, it gets passed to the higher unit if possible.Declaration
Swift
public static func ==(lhs: SCKDayPoint, rhs: SCKDayPoint) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Initializes a new
SCKDayPointobject with hour, minute and second set to the specified values. If any parameter is less than 0 or more than 60, it gets passed to the higher unit if possible.Declaration
Swift
public static func <(lhs: SCKDayPoint, rhs: SCKDayPoint) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Initializes a new
SCKDayPointobject with hour, minute and second set to the specified values. If any parameter is less than 0 or more than 60, it gets passed to the higher unit if possible.Declaration
Swift
public var hashValue: Int
View on GitHub
Install in Dash
SCKDayPoint Struct Reference