Article View: comp.lang.basic.visual.misc
Article #403Re: VB3 & VB4 16-bit Year 2000 Compliance Query
From: Keith G. Murphy
Date: Fri, 17 Apr 1998 00:00
Date: Fri, 17 Apr 1998 00:00
27 lines
1887 bytes
1887 bytes
The documented base date is December 30, 1899. Yeah, it's interesting to think about *when* there *would* be a problem. Since it's stored as a double, you need to think not only about how *large* a number can be stored (about 1.80E308, according to the docs), but *to what accuracy*. Now, the mantissa has 52 bits, so we could accurately represent: 2^52 days = 2.50E15 days = 1.23E13 years (from the base date) But what if we wanted accuracy to the second? 2^52 seconds = 2.50E15 seconds ~ 143 million years (from the base date) Let me know if I made a mistake! If MS doesn't have this fixed in about 140 million years, I'm gonna start worrying... Flewis wrote: > > Access stores Date/Time fields as floating point numbers, with the date > as the integer portion, and the time as the fractional portion. Dates are > stored as the number of days from December 1, 1899 (I think). VB handles > dates and times the same way. > > Year 2000 compliance is actually a non-issue.... [cut]
Technical Details
Message-ID:
<3537741C.210929EA@mindspring.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bfa79b$a1ea0060$03ef98c3@novix> <01bd698b$6201d5e0$0b4f87d1@devsys2>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108062,cf6962aa78a8c295 X-Google-Attributes: gid108062,public X-Google-Thread: f7a67,cf6962aa78a8c295 X-Google-Attributes: gidf7a67,public X-Google-Thread: 110e3b,cf6962aa78a8c295 X-Google-Attributes: gid110e3b,public From: "Keith G. Murphy" <keithmur@mindspring.com> Subject: Re: VB3 & VB4 16-bit Year 2000 Compliance Query Date: 1998/04/17 Message-ID: <3537741C.210929EA@mindspring.com> X-Deja-AN: 345060114 Content-Transfer-Encoding: 7bit References: <01bfa79b$a1ea0060$03ef98c3@novix> <01bd698b$6201d5e0$0b4f87d1@devsys2> X-Server-Date: 17 Apr 1998 15:24:35 GMT Content-Type: text/plain; charset=us-ascii Organization: Me, Myself & I, Inc. Mime-Version: 1.0 Reply-To: keithmur@mindspring.com Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,microsoft.public.vb.bugs