[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: time_t always an integer?
- From: Dave Dodge <dododge@...>
- Date: Thu, 12 Jan 2006 17:00:56 -0500
On Wed, Jan 11, 2006 at 05:46:15PM +0100, Mike Pall wrote:
> Asko Kauppi wrote:
> > as far as I know, any 'time_t' is always an integer, albeit the
> > interpretation of that value may differ. Is this right?
>
> time_t is always an integral value,
C defines it as an "arithmetic" type. It could legitimately be any
floating type, including something exotic like "long double _Complex",
without violating the Standard. Even POSIX explicitly allows a
floating type for time_t.
-Dave Dodge