Date routines in hypermail

From: Kent Landfield <kent_at_hypermail-project.org>
Date: Sun, 11 Oct 1998 22:13:30 -0500 (CDT)
Message-Id: <199810120313.WAA14379_at_landfield.com>


Well it seems that Brian Graham did us a favor in pushing the Y2K issue. I really wanted to sweep it under the rug as I was just about to put out another version... (Sorry Brian). Because it seemed to be important to all I dug in. What I found was not really pretty...

As was pointed out, Hypermail used two digit dates throughout. That has been corrected. It now uses 4 digit dates everywhere. But that was just the beginning...

In hypermail.h, October was listed in monthdays as only having 30 days. This bug goes all the way back to the original version. A nursery rhyme I learned years past (30 days have September, April, June and November, all the rest have 31 except for February which has 28 && 29 in a leap year). pointed it out. ;)

Hypermail did not deal with all the major date string representations. "Date:" formats starting with a digit (09 Sep 1998 01:27:30 +0300) would cause parsing and threading problems. It now supports that format.

There was an off by one day error in getyearsecs(). It was adding the current day && adding the hours, minutes, and seconds for that day as well. It only needed to count all the days UP TO the current day and then add the hours, minutes, and seconds for the current day. That too has been corrected.

I am running down one final date related problem before I clean it up and put it out as b4.

Thanks Brian!

-- 
Kent Landfield                        Phone: 1-817-545-2502             
Email: kent_at_landfield.com             http://www.landfield.com/
Email: kent_at_nfr.net                   http://www.nfr.net/
Please send comp.sources.misc related mail to kent_at_landfield.com
Search the Usenet FAQ Archive at http://www.faqs.org/faqs/
Received on Mon 12 Oct 1998 05:14:25 AM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT