[appengine-java] Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-18 Thread Marcus Brody
Good day, I would like to ask about following. How is java.util.Date synchronized in case there is more than 1 instance of my web application. Example: WebAppInstance01 : I create somewhere new Date() at the same time WebAppInstance02: I create somewhere new Date() Is there some time shift ?

Re: [appengine-java] Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-21 Thread Ikai L (Google)
It should just be whatever the date is on the current instance. In general, do not ever rely on dates to be synchronized. Clock skew is a reality of distributed computing, and you'll have to work around it. What exactly is the problem you're trying to solve? On Sun, Jul 18, 2010 at 11:23 PM, Marcu

Re: [appengine-java] Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-21 Thread Hariharan Anantharaman
Hi, Perhaps not directly related to your question. But java.util.Date is mostly deprecated and it is advised to use Calendar API. I believe that is synchronized. Thanks Hari 2010/7/22 Ikai L (Google) > It should just be whatever the date is on the current instance. In general, > do not ever r