This is true...but the mistake is just one hour, and the day when daylight saving time happens.
The Date class is not that correct:) , but the calendar class wich shouldv been the repair is not correct also..once joshua bloch on a presentation said...when u re-doing something, at list do it right:) On Tue, Nov 16, 2010 at 4:38 PM, Lothar Kimmeringer <[email protected]>wrote: > Am 16.11.2010 16:30, schrieb Blagoja Chavkoski: > > > Just use "now"= new Date(), and then from this date do what ever u like > to do > > > > one day after... new Date ( new Date().getTime() + 24 * 60 * 60 * 1000) > > one day before... new Date ( new Date().getTime() - 24 * 60 * 60 * 1000) > > > > one week after ...new Date ( new Date().getTime() + 7 * 24 * 60 * 60 * > 1000) > > one week before...new Date ( new Date().getTime() - 7 * 24 * 60 * 60 * > 1000) > > > > etc... > > > ... and hope you're not residing at a place where daylight saving > times do exist. > > @anthony: There was a similar discussion where I answered already. > I don't remember the exact date but using the search option of the > mail-archive should bring it up. > > > Regards, Lothar > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
