durationOffset(to:)

A time data source that produces the offset between Date.now and the given date as a Duration.

Declaration

static func durationOffset(to date: Date) -> TimeDataSource<Duration>