3 ms·
`NSDate` used to support creation from a "natural language" phrase: https://developer.apple.com/reference/foundation/nsdate/1415776-date https://developer.apple
by saagarjha 10y ago
`NSDate` used to support creation from a "natural language" phrase: https://developer.apple.com/reference/foundation/nsdate/1415776-date https://developer.apple.com/reference/foundation/nsdate/1415...
It was deprecated recently, however.
- chc 10y agoEven further back, there was an NSCalendarDate class that was supposed to represent the human concept of a date. IIRC they got rid of it because they felt like it muddled presentational concerns with data structure concerns. It was pretty convenient, though.
- saagarjha 10y agoYep, I had to do a bit of fuddling around with DateComponents and it was painful.