Newsgroups: news.software.b
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Expire doesn't allow 1-day expirations?
Message-ID: <1988Mar13.000043.11729@utzoo.uucp>
Organization: U of Toronto Zoology
References: <8089@tut.cis.ohio-state.edu>, <2370@plus5.UUCP>
Date: Sun, 13 Mar 88 00:00:43 GMT

> I added this patch to expire a while ago.  It lets you specify the expiration
> time as [days][:hours] .

An alternate, arguably simpler, way to get the same effect is to convert
number of days to seconds not by doing

	atol(...) * DAYS

but

	(time_t)(atof(...) * DAYS)

so that decimal fractions can be used.  This is what C news expire does.
-- 
Those who do not understand Unix are |  Henry Spencer @ U of Toronto Zoology
condemned to reinvent it, poorly.    | {allegra,ihnp4,decvax,utai}!utzoo!henry
