🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Sherman Thu, 28 Apr 1988 00:09
getdate(3) wrong in parsing ctime(3) output
#114
Author: David Sherman
Date: Thu, 28 Apr 1988 00:09
19 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads