[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Y2K and P8 TN #28 (Re: No-Slot Clock)



In article <20000105215758.07879.00000790@ng-da1.aol.com>,
TEXAS II - AppleWorks (Beverly Cadieux) <a2mg@aol.comNoMail> wrote:
>Dave, while I agree with you and I expect this issue has already been
>resolved, let me tell you why Glen's idea was good:
>...
>Glen's solution of years 100 and up allow the directory to sort by date with
>years 00 (actually 100) AFTER 99.

P8 Technote #28 includes sample code showing one way of doing a correct
comparison of two dates.  The right thing to do is rev apps to do the
date comparisons properly.

As noted by others, ProDOS 8 itself never interprets dates, so it does
not contain any "if year < 40, add 100" logic.  (The GS/OS ProDOS FST,
and the Macintosh PC Exchange / File Exchange code for accessing ProDOS
disks *do* contain such logic, as well as the inverse.)

BTW, Davex 1.3 (finished weeks ago, except for release notes) sorts
directory listings correctly.

If you rely on years 100..127 to provide properly-sorted directory
listings, rather than revising the apps to sort correctly, then you
will get strange and confusing sort results as soon as you sort a
directory containing a mix of correct and incorrect year numbers.
The incorrect 00 years will show up where you expect, but the correct
ones will show up in the wrong place.

--
Dave Lyons
Mr Tangent
<http://members.aol.com/davelyons>