Date
extension Date
-
Undocumented
Declaration
Swift
static var currentTimestamp: Int { get } -
Returns the amount of years from another date
Declaration
Swift
func years(from date: Date) -> Int -
Returns the amount of months from another date
Declaration
Swift
func months(from date: Date) -> Int -
Returns the amount of weeks from another date
Declaration
Swift
func weeks(from date: Date) -> Int -
Returns the amount of days from another date
Declaration
Swift
func days(from date: Date) -> Int -
Returns the amount of hours from another date
Declaration
Swift
func hours(from date: Date) -> Int -
Returns the amount of minutes from another date
Declaration
Swift
func minutes(from date: Date) -> Int -
Returns the amount of seconds from another date
Declaration
Swift
func seconds(from date: Date) -> Int -
Returns the a custom time interval description from another date
Declaration
Swift
func offset(from date: Date) -> String
Date Extension Reference