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

    date

    The Date object from which to get h/m/s parameters.

    Return Value

    The initialized SCKDayPoint.

  • Initializes a new SCKDayPoint object 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

    hour

    The point’s hour.

    minute

    The point’s minute. If less than 0 or greater than 60 it gets passed to hour.

    second

    The point’s second. If less than 0 or greater than 60 it gets passed to minute.

    Return Value

    The initialized SCKDayPoint.

  • Initializes a new SCKDayPoint object 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) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Initializes a new SCKDayPoint object 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) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Initializes a new SCKDayPoint object 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