boredzo / iso-8601-date-formatter

A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.
http://boredzo.org/iso8601dateformatter/
Other
600 stars 140 forks source link

Add option for colons in the time zone separator #9

Closed danielctull closed 11 years ago

danielctull commented 11 years ago

ISO8601 says the time zone can have colons separating the components of the time zone separator. This adds an enum and property to set if you want to use colons or not. The default is not, as to not change the current functionality without explicitly setting this option.

boredzo commented 11 years ago

I did basically this, but with a unichar property (like the existing timeSeparator) rather than a binary enum: https://github.com/boredzo/iso-8601-date-formatter/commit/8198f1b1446cf519179dd643db155950138c7b34