Re: HEADS UP! MAJOR change to FreeBSD/sparc64

From: Diomidis Spinellis <dds_at_aueb.gr>
Date: Fri, 19 Mar 2004 22:01:34 +0200
Garance A Drosihn wrote:
> At 10:15 AM +0200 3/19/04, Diomidis Spinellis wrote:
[...]
>> Another interesting possibility that the standard appears to
>> allow, is to change the *precision* of time_t.  For example,
>> if time_t represented time in two-second intervals ...
[...]

> Not allowed.  time_t has to be a value of "seconds".  When the
> standard talks about "precision", it means we might only UPDATE
> that value every 10 seconds, but the value itself is in seconds.

I could not find anything in my copy of C99, substantiating that. 
Seconds are not mentioned in any of the sections 7.23.1 defining time_t, 
7.23.2.3 defining mktime, and 7.23.2.4 defining time.  Section 7.23.2.4 
specifically states that "the encoding of the value is unspecified", and 
7.23.2.3 specifies that "mktime returns the specified calendar time 
encoded as a value of type time_t".

POSIX is of course a different story.

Diomidis
Received on Fri Mar 19 2004 - 11:07:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC