realbasic-nug
[Top] [All Lists]

Re: Dates before Jan 1, 1904

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Dates before Jan 1, 1904
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 1 Jun 2002 12:15:44 -0700
At 10:32 AM -0700 6/1/02, Brady Duga wrote:

REAL is probably using the traditional date-time record from Mac OS. This uses a single, 4-byte value to represent the date and time offset from an epoch, in this case Jan 1, 1904. From the developer docs at Apple: "Therefore, the date-time record can track dates and times only between midnight on January 1, 1904 and 6:28:15 A.M. on February 6, 2040." Apple has an extended structure (the LongDateRec) that can represent dates between 30000BC and 30000AD (and switch between calendar systems). I suppose you could access the other structure with declares and memory blocks.

We use LongDateRecs internally. The reported behavior is a bug, probably some slipped sign bit or some such as suggested.

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


<Prev in Thread] Current Thread [Next in Thread>