Re: new java date query



On Fri, 07 Apr 2006 22:35:45 GMT, Patricia Shanahan <pats@xxxxxxx>
wrote, quoted or indirectly quoted someone who said :

1. Deals that had that start date in the analyst's timezone.

2. Deals that had that start date in the home timezone of the business.

3. Deals that had that start date in the timezone in which the deal was
made.

You can sidestep some of this complexity by getting rid of the time
and storing a pure date. Christmas is on Dec 25. The floral society
meets the third Tuesday of each month.... It has nothing to do with
timezones. The deal was signed as 2006-01-31. It is still binding no
matter what the timezone.

Where do these pure dates come from?

1. they may be entered by humans as yyyy-mm-dd having whatever meaning
they assign to them, typically the date in the timezone the deal was
signed.

2. You get them by considering the date of a timestamp at Greenwich.

3. You get hem by considering the date of a timestamp at the location
it was entered.

This is how BigDate works. I have found that perhaps 90% of date
calculations are simplified by getting rid of the time and timezone
before you do your calculations. If the result does not depend on
them, they just trip you up.

Further you can store a pure date in 16 or 32 bits quite neatly. For a
timestamp you need 64.

On the other hand, capturing raw data and storing it as UTC timestamps
means you have unabiguously nailed precisely when the event occurred.
So long as you get that right initially, you can then display it in
any form that people find convenient, even if something as goofy as
retroactive daylight saving were announced.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Python 2.5.1 broken os.stat module
    ... |>> when DST starts and also when DST ends, even though the file has NOT ... Windows is not claiming ... | That local textual representation of the modification timestamp is what ... And without a timezone attached, ...
    (comp.lang.python)
  • Re: question about GMT and UTC
    ... I need a timezone to store timestamps in that is independent of daylight saving. ... it seems I want either GMT or UTC. ... Could someone please confirm if they are in fact the same or if one is better, and if I am correct in stating that neither is affected by daylight saving? ... for example, will always return the exact same timestamp in either GMT or UTC timezone and vice versa, i.e. 1 timestamp resulting in the exact same 12:00:00 readout via datewhether GMT or UTC. ...
    (comp.lang.php)
  • Re: how to make dates without timezones?
    ... class, with a unique format on the wire, so that you don't accidentally ... seems to me that there should be a strictly CalendarDate class i could ... use for the date types and CalendarTimeStamp class for the timestamp ... after on a change in timezone. ...
    (comp.lang.java.programmer)
  • Re: clock format and timezones
    ... continuosuly changing the system timezone might be ... timestamp based on a relative offset from GMT. ... array set tz { ... # calsulate the time offset ...
    (comp.lang.tcl)
  • Re: Email TimeStamp
    ... that should be able to tell you where the timestamp is wrong... ... Susan Conkey [MVP] ... I verified the server has the correct time and timezone ...
    (microsoft.public.exchange.admin)