CompareAgainstDate

struct CompareAgainstDate

The CompareAgainstDate Parameter

Static-Properties

  • The current Date CompareAgainstDate

    Declaration

    Swift

    public static let currentDate: `Self`

Typealias

  • The Date Adding typealias representing a Tuple with Calendar Component and Value

    Declaration

    Swift

    public typealias Adding = (component: Calendar.Component, value: Int)

Properties

  • The CompareAgainst Date

    Declaration

    Swift

    public let compareAgainst: CompareAgainst<Date?>
  • The optional Adding closure which takes in an EUDCC

    Declaration

    Swift

    public let adding: ((EUDCC) -> Adding?)?

Initializer

  • Creates a new instance of CompareAgainstDate

    Declaration

    Swift

    public init(
        _ compareAgainst: CompareAgainst<Date?>,
        adding: @escaping (EUDCC) -> Adding?
    )

    Parameters

    compareAgainst

    The CompareAgainst Date

    adding

    The Adding closure which takes in an EUDCC

  • Creates a new instance of CompareAgainstDate which takes in an optional constant Adding value

    Declaration

    Swift

    public init(
        _ compareAgainst: CompareAgainst<Date?>,
        adding: Adding? = nil
    )

    Parameters

    compareAgainst

    The CompareAgainst Date

    adding

    The optional Adding value. Default value nil