[swift-users] Date and Data
Quinn "The Eskimo!"
eskimo1 at apple.com
Thu Aug 4 04:31:01 CDT 2016
On 3 Aug 2016, at 23:43, Travis Griggs via swift-users <swift-users at swift.org> wrote:
> I realized right after I wrote this, that I could also
>
> typealias Timestamp = Date
>
> And reap similar benefits.
Yeah, of the two NSDate is the one that’s misnamed IMO. The name gives the impression that the value is somehow related to the calendar, which it isn’t. NSTimestamp, NSDateTime, NSAbsoluteTime, and so on would all be better.
Of course, fixing this would be… challenging.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
More information about the swift-users
mailing list