-------------- Original message ----------------------
From: Alan Eliasen <eliasen@...>
>
> Thus, the time #1582-10-04 23:59:59 UTC# (Julian) is followed
> immediately by #1582-10-15 00:00:00 UTC# (Gregorian) Note that if a
> date is specified between these dates, behavior will be undefined.
But those intervening dates are not undefined. They all have the same value.
All of the dates in that rangebut after 1582-10-04 23:59:59 have the same offset
of the beginning of the epoch. So converting the external representation of
those dates to the internal representation should produce the internal
representation for 1582-10-15 00:00:00.
Note also that when you add locales (e.g., C++) you will need to vary the
internal representation for the tick on which the transition occurred. The date
of the adoption of the new calendar depended upon the national jurisdiction. So
some official records will have been created using the old calendar, but after
the first valid date in the new calendar. Thus there exist valid old-calendar
dates after 1582-10-15.
Consistently,
Lee Winter
NP Engineering
Nashua, New Hampshire
603-595-2608