Xref: utzoo comp.bugs.misc:116 news.software.b:1338 comp.unix.wizards:8086 Newsgroups: comp.bugs.misc,news.software.b,comp.unix.wizards Path: utzoo!lsuc!dave From: dave@lsuc.uucp (David Sherman) Subject: getdate(3) wrong in parsing ctime(3) output Date: Wed, 27-Apr-88 20:09:11 EDT Message-ID: <1988Apr27.200912.8064@lsuc.uucp> Organization: Law Society of Upper Canada, Toronto We have getdate(3) installed in libc.a and use it for various applications beyond netnews. According to getdate.y, it's version 2.16, 9/24/87. I just discovered that it is WRONG when parsing ctime(3) output. If you feed "Wed Apr 27 12:09:03 1988" to getdate, it interprets it as a number that, when output through ctime(3), produces: "Tue Apr 26 11:41:03 1988". I've reverted to an older getdate I had lying around, version 2.5 (Bellovin 3/3/83), and it works fine. But the new one has some enhancements I like. Does anyone know what the problem is? This machine is a Perkin-Elmer 3220 running v7, by the way. David Sherman The Law Society of Upper Canada -- { uunet!mnetor pyramid!utai decvax!utcsri ihnp4!utzoo } !lsuc!dave