string(from:)

Returns a formatted string for the given date interval.

Declaration

func string(from dateInterval: DateInterval) -> String?