TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Year 2000 From:Glen Accardo <glen -at- SOFTINT -dot- COM> Date:Fri, 9 Dec 1994 11:11:51 -0600
> The reason? Create a list of dates, including dates from this century and
> the next, written in the last-two digits style; then try sorting that list
> of dates by year. Notice where the dates from the next century fall. Now,
> try doing some subtraction. (Say, 1995 from 2004, or rather: 95 from 04.)
Any software worthy of using stores Julian dates: usually a long integer
representing the number of days/seconds/whatever-time-units from some
point to the date represented. Multics (feeling nostalgic today) used the
number of seconds from the beginning of the century to represent a date/time.
People have known about this problem for ages. Julian dates also make other
problems trivial: how many days are there between December 31, 1964 and
today? Solving that problem with Gregorian dates involves nastier numeric
gynastics to account for leap years (a very nasty problem), plus a few other
snafus. To do the same with Julian dates is trivial subtractions.
The real problem is WHAT you are sorting: you need to sort dates, not strings.
------------
glen accardo glen -at- softint -dot- com
Software Interfaces, Inc. (713) 492-0707 x122
Houston, TX 77084