Re: locations of DST information
Re: locations of DST information
- Subject: Re: locations of DST information
- From: "Mr. Pierre Frisch" <email@hidden>
- Date: Mon, 28 Jan 2008 10:56:14 -0800
Thanks, but I think it would be going backwards. The current
NSTimestampFormatter is already a thin layer on top of
SimpleDateFormat using NSTimeZone instead of TimeZone with some
bizarre adjustments to make it behave like the ObjC formatter. Some of
the format characters are just ignored as they do not have a
correspondent in SimpleDateFormat. The next version of WebObjects will
not use NSTimestampFormatter internally. You can write a translator
but you are going to incur a performance penalty for very little gain.
Don't forget that you should not cache format as they are not re-
entrant.
Most WO developer do not embed their format string in every component
anyway it is way too cumbersome when the customer invariably ask for a
change, we all push them in cover methods in WOComponent so moving
away from the old format should not be that difficult.
Cheers
Pierre
--
Pierre Frisch
email@hidden
On Jan 28, 2008, at 9:30, Mike Schrag wrote:
I mean for Pierre, inside WO, or Wonder with a class replacement if
it ends up going away completely ...
ms
On Jan 28, 2008, at 12:18 PM, Anjo Krank wrote:
Not really. You'd need to get it plugged into the system, see if it
works with all the components and so on. So this is not an hour or
two of work.
Cheers, Anjo
Am 28.01.2008 um 18:05 schrieb Mike Schrag:
It should be really easy to write a new NSTimestampFormatter that
just converts old format to SimpleDateFormat format internally,
right? So NSTimestampFormatter could be deprecated but not gone.
I actually wrote this code last year but I think I ended up
tossing it, and I don't recall why. No idea where it ran off to,
but it was maybe an hours worth of code, and another that because
you have to keep looking back and forth between the two
references. IIRC there were two %things that didn't have an
equivalent in SimpleDateFormat.
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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