Re: TimeZone Issue
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Mar 2009 17:53:46 -0700
On Mon, 30 Mar 2009 21:47:17 -0700 (PDT), jagadesh
<jagadesh.manchala@xxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
i have developed a appointment sort of web appliation. my problem is
whenever i create a appointment in india ,it get saved in server which
is in chicago. if i create a n appointment on 9 am today . it saves in
server.but when a person in chicago opens the appointment , the
appointment creation time and date are different .since the timezones
are different .
An appointment to meet for a phone call exists is a point in time. The
people in India and the people in Chicago have may have a different
date and will have a different time to describe that instant. That's
just one of the quirks of a spherical rotating earth.
It you wanted for example to say that Christmas happen on Dec 25 both
in India and Chicago, you are not talking about an instant in time.
You are talking about a civic event, a pure date. In that case time
and timezone are irrelevant. BigDate was invented to handle such
dates simply. You can do it with Java date/times but you spend 90% of
your effort trying to get rid of the time and timezone.
See http://mindprod.com/jgloss/bigdate.html
http://mindprod.com/jgloss/calendar.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
"Danish studies of 10,000 birds killed revealed that almost all died in
collisions with buildings, cars and wires; only 10 were killed by windmills.
Alternative energy sources are absolutely necessary.
Global warming will kill birds and bats, as well as other species,
in much greater numbers than wind power."
~ Dr. David Suzuki
.
- Follow-Ups:
- Re: TimeZone Issue
- From: Lew
- Re: TimeZone Issue
- Prev by Date: Re: Executable Jar file reading files.
- Next by Date: Re: java RESTful web service
- Previous by thread: War not updating app
- Next by thread: Re: TimeZone Issue
- Index(es):
Relevant Pages
|