You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
spneshaei
added a commit
to spneshaei/SwiftDate
that referenced
this issue
Jul 6, 2021
let date4 = date1 + date2
// extract single time unit components from date manipulation
let over1Year = (date3 - date2).year > 1
The text was updated successfully, but these errors were encountered: