let date1 = ("2010-05-20 15:30:00".toDate()! + 3.months - 2.days)
print("date1"+(date1.description ))
let date2 = Date() + 3.hours
print("date2"+(date2.description ))
let date3 = date1 + [.year:1, .month:2, .hour:5]
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️XXXXXXXXXX
let date4 = date1 + date2
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️XXXXXXXXXX
// extract single time unit components from date manipulation
let over1Year = (date3 - date2).year > 1
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️XXXXXXXXXX let date4 = date1 + date2 ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️XXXXXXXXXX // extract single time unit components from date manipulation let over1Year = (date3 - date2).year > 1