Pierre -- Pierre Frisch [EMAIL PROTECTED]
On Jan 28, 2008, at 12:23, Lachlan Deck wrote:
On 29/01/2008, at 6:47 AM, Mike Schrag wrote:Having NSTimestampFormatter as a "symbol translating sub-class" would ease the pain of transition for many.Yeah, this is what I'm proposing as well ... I feel Pierre's pain with not wanting to rewrite and maintain deprecated code, but I fear WO becoming what everyone hates about Tapestry, which is that it goes through huge breaking revisions every release. There is a large base of legacy apps, and especially if there are relatively straightforward deprecation routes, it would be better to not break than to break, I think (this is obviously subject to a religious debate, I suspect). I'm especially wary of breaking changes that just break semantics rather than syntax. In this case, it's breaking the interpretation of random strings inside of WODs, which will make for a really annoying fix. Alternatively, I suppose someone could write a conversion app to convert all the old style into new style, but that only partially addresses the issue.Most of the symbols have a SDF equivalent, as seen below. And the ones that don't wouldn't be difficult to provide functionality for by subclassing SDT I would think (which still excludes api compatibility with NSTimestampFormatter's other methods).I'd be happy to whip this up later in the week and contribute to Wonder if people want it.with regards, -- Lachlan Deck NSF SDF Description %% % a '%' character %a EEE abbreviated weekday name %A EEEE full weekday name %b MMM abbreviated month name %B MMMM full month name %c shorthand for "%X %x", the locale format for date and time %d dd day of the month as a decimal number (01-31) %e d same as %d but does not print the leading 0 for days 1 through 9 %F SSS milliseconds as a decimal number (000-999) %H HH hour based on a 24-hour clock as a decimal number (00-23) %I hh hour based on a 12-hour clock as a decimal number (01-12) %j DDD day of the year as a decimal number (001-366) %m MM month as a decimal number (01-12) %M mm minute as a decimal number (00-59) %p a AM/PM designation for the locale %S ss second as a decimal number (00-59) %w weekday as a decimal number (0-6), where Sunday is 0 %x date using the date representation for the locale %X time using the time representation for the locale %y yy year without century (00-99) %Y yyyy year with century (such as 1990) %Z zzz[z] time zone name (such as "Europe/Paris" or "PST")%z Z time zone offset from GMT in hours and minutes (such as "+0200" or "-1200")_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/pierre%40apple.com This email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
