tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Support for tv_sec=-1 (one second before the epoch) timestamps?



>> time_t is signed so that it can also be used to store time
>> differences.
> That is the thinking that leads to bugs ... it is just the same as
> believeing that differences between pointers is a pointer.

Or that the difference between two ints is an int.

> The difference between times is an interval, or duration, not a time,
> and should not be stored in a time_t, ever.

So, what type _should_ be used for it?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index