Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2001 13:40:45 +0300
From:      Valentin Nechayev <netch@iv.nn.kiev.ua>
To:        David Wolfskill <david@catwhisker.org>
Cc:        stable@FreeBSD.ORG
Subject:   Re: time_t definition is worng
Message-ID:  <20010603134044.A1343@iv.nn.kiev.ua>
In-Reply-To: <200106012318.f51NI8w38590@bunrab.catwhisker.org>; from david@catwhisker.org on Fri, Jun 01, 2001 at 04:18:08PM -0700
References:  <200106012300.f51N0VT90830@earth.backplane.com> <200106012318.f51NI8w38590@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 Fri, Jun 01, 2001 at 16:18:08, david (David Wolfskill) wrote about "Re: time_t definition is worng": 

> >    Historically people compared time stamps by subtracting one from 
> >    another.
> Which is a practice that the difftime() function was invented to
> replace.

difftime is for ANSI compatilibity but not for UNIX. It returns double.
There is no reason to attract float-point calculations without explicit
need...


/netch

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010603134044.A1343>