• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: locations of DST information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locations of DST information


  • Subject: Re: locations of DST information
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 28 Jan 2008 12:47:22 -0800


On Jan 28, 2008, at 12:23 PM, 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.

Let's see if we can convince Pierre to do this in WO so that everyone can have it. As Pierre said last week, "Wonder is not the place to fix problems in WebObjects". ;-)



Chuck



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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: locations of DST information (From: Lachlan Deck <email@hidden>)
 >Re: locations of DST information (From: Art Isbell <email@hidden>)
 >Re: locations of DST information (From: Lachlan Deck <email@hidden>)
 >Re: locations of DST information (From: Lachlan Deck <email@hidden>)
 >Re: locations of DST information (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: locations of DST information (From: Anjo Krank <email@hidden>)
 >Re: locations of DST information (From: Simon McLean <email@hidden>)
 >Re: locations of DST information (From: Mike Schrag <email@hidden>)
 >Re: locations of DST information (From: Anjo Krank <email@hidden>)
 >Re: locations of DST information (From: Mike Schrag <email@hidden>)
 >Re: locations of DST information (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: locations of DST information (From: Chuck Hill <email@hidden>)
 >Re: locations of DST information (From: Mike Schrag <email@hidden>)
 >Re: locations of DST information (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: locations of DST information
  • Next by Date: Re: locations of DST information
  • Previous by thread: Re: locations of DST information
  • Next by thread: Re: locations of DST information
  • Index(es):
    • Date
    • Thread