Time is really confusing when you think about it, especially when you are programming around it. And especially in a mobile app, where the time on the device could be in any timezone and is not guaranteed to be reliable.
I have seen plenty of “time” bugs in my days. I’ve seen time beat some amazing programmers, even leading one of them to question aloud, “What is time?”
This new Swift “Time” library looks like a good shot at simplifying time and restoring sanity.
I love that the basic classes in this library are Clock and TimeZone. Yesss, that is some simple SOLID goodness!
Via iOS Dev Weekly.