Date
struct Date : ReferenceConvertible, Comparable, Equatable
-
Undocumented
Declaration
Swift
public func isGreaterThanDate(dateToCompare: Date) -> Bool -
Undocumented
Declaration
Swift
public func isLessThanDate(dateToCompare: Date) -> Bool -
Undocumented
Declaration
Swift
public func equalToDate(dateToCompare: Date) -> Bool -
Undocumented
Declaration
Swift
public func addDays(daysToAdd: Int) -> Date -
Undocumented
Declaration
Swift
public func addHours(hoursToAdd: Int) -> Date -
Returns the amount of years from another date
Declaration
Swift
public func years(from date: Date) -> Int -
Returns the amount of months from another date
Declaration
Swift
public func months(from date: Date) -> Int -
Returns the amount of weeks from another date
Declaration
Swift
public func weeks(from date: Date) -> Int -
Returns the amount of days from another date
Declaration
Swift
public func days(from date: Date) -> Int -
Returns the amount of hours from another date
Declaration
Swift
public func hours(from date: Date) -> Int -
Returns the amount of minutes from another date
Declaration
Swift
public func minutes(from date: Date) -> Int -
Returns the amount of seconds from another date
Declaration
Swift
public func seconds(from date: Date) -> Int -
Returns the a custom time interval description from another date
Declaration
Swift
public func offset(from date: Date) -> String -
Undocumented
Declaration
Swift
var year: Int { get } -
Undocumented
Declaration
Swift
var month: Int { get } -
Undocumented
Declaration
Swift
var day: Int { get } -
Undocumented
Declaration
Swift
func equalToDay(date: Date) -> Bool
Date Extension Reference