[LEAPSECS] Some definitions --> practically stated

Warner Losh imp at bsdimp.com
Wed Mar 9 10:36:45 EST 2011



> In message<1299636769.12189.132.camel at localhost>, Paul Sheer writes:

>

>> Posix time

>>

>> Posix time is just a definition of the relationship between days and

>> logical seconds: i.e. there are 86400 of them in a day and the first day

>> is 1970-01-01. Posix time is a 32/64-bit (signed) logical second value.

> POSIX also allows time_t to be a floating point value:

>

> time_t and clock_t shall be integer or real-floating types.

>

> Very little, if any, code survives compilation on a system where

> time_t is a double.

>

> Technical speaking we also need ISO-C time, which uses a looser

> definition than POSIX.

>


Out of curiosity, does anybody know of a system that chose to implement
time_t as a float/double?

Warner



More information about the LEAPSECS mailing list