thanks a lot!
my goal is actually to output the time between a given date (set by the user)
und the actual date (today) in days, weeks, months and years.
problem is that I can only output one value for the hole distance...
and weeks isn't possible at all
let cal = Calendar.current
let d1 = Date()
let d2 = Date.init(timeIntervalSince1970: 1524787201-1591201-100740)
let hours = cal.dateComponents([.hour], from: d2 , to: d1)
let days = cal.dateComponents([.day], from: d2 , to: d1)
let months = cal.dateComponents([.month], from: d2 , to: d1)
let years = cal.dateComponents([.year], from: d2 , to: d1)
let diff1 = days.day!
let diff2 = months.month
let diff3 = years.year