iso-8601-date-formatter
iso-8601-date-formatter copied to clipboard
A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.
Since 10.7, NSDateComponents has a `nanosecond` property. This would likely be friendlier to clients than the existing `fractionOfSecond` out-parameter.
So, under iOS8 (and, I presume, Yosemite, since this is about a foundation class) presents a number of deprecation warnings -- mostly things like constants who names have changed, when...
Currently, `make test` builds and runs a mess of shell, Python, and Objective-C code, which I've started referring to as the “test monsters”. There are two test monsters. One of...
This is part of the modernization that is more broadly covered by #21.
E.g., `ISO8601_NULLABLE` should just be `_Nullable`.
Modern XCTestCase subclasses don't have headers unless they especially need them.
Hi Peter - Thanks so much for your most excellent contribution of ISO8601DateFormatter to the Cocoa Open Source community. It definitely has to be one of the most widely used...
Who knows what bugs it will catch? https://github.com/boredzo/warnings-xcconfig
New code added late in 0.8 has these already, but all code should have nullability where applicable (and `const`, where feasible).
Need to go from P1DT13H24M17S to NSTimeInterval and back. Or two NSDate's to time interval duration. Relevant SO questions: http://stackoverflow.com/questions/1146416/how-to-parse-an-iso-8601-duration-in-objective-c http://stackoverflow.com/questions/22230629/how-to-transform-two-nsdate-objects-into-an-iso-8601-time-interval-duration