Article View: comp.bugs.misc
Article #114getdate(3) wrong in parsing ctime(3) output
From: David Sherman
Date: Thu, 28 Apr 1988 00:09
Date: Thu, 28 Apr 1988 00:09
19 lines
1069 bytes
1069 bytes
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
Technical Details
Message-ID:
<1988Apr27.200912.8064@lsuc.uucp>Path:
arc1-ca.pugleaf.net!utzoo!lsuc!daveShow Full Headers
Complete Article Headers
Newsgroups: comp.bugs.misc,news.software.b,comp.unix.wizards Path: arc1-ca.pugleaf.net!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