• 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: nstimestampformatter error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nstimestampformatter error?


  • Subject: Re: nstimestampformatter error?
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 30 Oct 2010 12:15:13 -0700

timezones

On Oct 30, 2010, at 11:50 AM, James Cicenia wrote:

> Hello -
>
> Here is the code:
>
> weekStart = beginDate.timestampByAddingGregorianUnits(0,0,(k*7),0,0,0);
> weekAfterStart = beginDate.timestampByAddingGregorianUnits(0,0,((k+1)*7),0,0,0);
>
> System.out.println("weekStart = "+weekStart);
> System.out.println("weekAfterStart = "+weekAfterStart);
> System.out.println("converted weekAfterStart = "+TOSUtilities.formatTimestampToDay(weekAfterStart));
>
> OUTPUTS:
>
> weekStart = 2010-11-01 05:00:00 Etc/GMT
> weekAfterStart = 2010-11-08 05:00:00 Etc/GMT
> convertedWeekAfterStart = 11/07/10  <<=========== wrong?!
>
> Thanks
> James
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

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







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

  • Follow-Ups:
    • Re: nstimestampformatter error?
      • From: Ramsey Lee Gurley <email@hidden>
References: 
 >nstimestampformatter error? (From: James Cicenia <email@hidden>)

  • Prev by Date: nstimestampformatter error?
  • Next by Date: Re: nstimestampformatter error?
  • Previous by thread: nstimestampformatter error?
  • Next by thread: Re: nstimestampformatter error?
  • Index(es):
    • Date
    • Thread