• 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: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter


  • Subject: Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 8 Jul 2008 16:12:00 -0700


On Jul 8, 2008, at 4:10 PM, Gennady Kushnir wrote:

NSTimestampFormatter also understands the SimpleDateFormat pattern symbols.
Just use the SimpleDateFormat symbols for both.
Does it work only for 5.4 or also for earler versions of WO?

NSTimestampFormatter has always understood the SimpleDateFormat pattern symbols. This is not new.






Gennady

2008/7/9 Chuck Hill <email@hidden>:

On Jul 8, 2008, at 3:59 PM, Gennady Kushnir wrote:

Hello list!
As mentioned in WO 5.4 documentation NSTimestampFormatter class is now
deprecated.
They recommend using java.text.SimpleDateFormat instead. Pattern
formats for NSTimestampFormatter and SimpleDateFormat a different.
But when binding WOString and WOTextFiend it still takes patterns for
dateFormat in old NSTimestampFormatter style.


I want to store and reuse some global setting for date format pattern.
But now I have to either use different patterns for WOD bindings and
programmatic use
or rely on deprecated NSTimestampFormatter and get warnings each time.


NSTimestampFormatter also understands the SimpleDateFormat pattern symbols.
Just use the SimpleDateFormat symbols for both.


Also note that unlike NSTimestampFormatter, SimpleDateFormat is not thread
safe. At least NSTimestampFormatter is not documented to be non- thread
safe.



Chuck

--

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









--

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: 
 >SimpleDateFormat vs [Deprecated] NSTimestampFormatter (From: "Gennady Kushnir" <email@hidden>)
 >Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter (From: Chuck Hill <email@hidden>)
 >Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter (From: "Gennady Kushnir" <email@hidden>)

  • Prev by Date: Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
  • Next by Date: Re: WOLips "Problem Occured"
  • Previous by thread: Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
  • Next by thread: Re: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
  • Index(es):
    • Date
    • Thread