CompareAgainstDate
struct CompareAgainstDate
The CompareAgainstDate Parameter
-
The current Date CompareAgainstDate
Declaration
Swift
public static let currentDate: `Self`
-
The Date Adding typealias representing a Tuple with Calendar Component and Value
Declaration
Swift
public typealias Adding = (component: Calendar.Component, value: Int)
-
The CompareAgainst Date
Declaration
Swift
public let compareAgainst: CompareAgainst<Date?>
-
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 constantAdding
valueDeclaration
Swift
public init( _ compareAgainst: CompareAgainst<Date?>, adding: Adding? = nil )
Parameters
compareAgainst
The CompareAgainst Date
adding
The optional Adding value. Default value
nil