DateTimeToTimeStamp returns incorrect values

Giganews Newsgroups
Subject: DateTimeToTimeStamp returns incorrect values
Posted by:  Jan Goyvaerts (…@jgsoft.com)
Date: Sun, 26 Feb 2006

Hi.

DateTimeToTimeStamp seems to return incorrect values.

First it calls Zero, which calls ZeroDate, which sets Year and Day to one
rather than zero (very clever!).

Then it calls AddYear and AddDay, yielding a year and day off by one.

Kind regards,
Jan Goyvaerts

--
The world's most powerful grep tool just got better.
http://www.powergrep.com/

Replies