Ptt-official-app / Ptt-iOS

37 stars 7 forks source link

Implement date difference #46

Closed xxi511 closed 2 years ago

xxi511 commented 2 years ago

Give a time interval, it will be compared with the current time and return the difference.

How to use.

let a: TimeInterval 
print(a.diff())