× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Probably because the math for leap years, and other date adjustments
fits when that number is used.  There's a size issue as well.

It would be interesting to learn how someone came up with that
specific date...musta been a nasty DOU!

-reeve


On Tue, 11 Jan 2005 12:22:12 -0800, Tony Carolla <carolla@xxxxxxxxx> wrote:
> I find date storage a fascinating topic!  This is interesting, because
> it would seem that the earliest date available (even though only used
> in a 'scholarly' sense), would be 0001-01-01, or January 1, 0001.  If
> the Scaliger numbers go back to, basically January 1, -4713, then why
> don't the allowed values for a Date field go back that far?
> 
> 
> On Tue, 11 Jan 2005 13:01:29 -0600, Bruce Vining <bvining@xxxxxxxxxx> wrote:
> >
> >
> > > Date fields are all stored internally as a 4-byte integer. The value
> > stored
> > > is the number of days since January 1, 0001 or October 14, 1582, I'm not
> > > sure which it is.
> >
> > A minor point but date fields are actually stored using Scaliger numbers
> > which have a base of January 1 4713 BCE.
> >
> > October 14 1582 is the base date for Lilian numbers which are used by the
> > ILE CEE Date APIs.
> >
> > --
> > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> > To post a message email: RPG400-L@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> > or email: RPG400-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/rpg400-l.
> >
> >
> 
> 
> --
> "Enter any 11-digit prime number to continue..."
> --
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
> 
>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.