[LEAPSECS] Lets get REAL about time.
mcalabre at atnf.csiro.au
Tue Jan 24 18:39:53 EST 2012
On Tue 2012/01/24 08:22:41 -0000, "Poul-Henning Kamp" wrote
in a message to: Mark Calabretta <mcalabre at atnf.csiro.au>
and copied to: Leap Second Discussion List <leapsecs at leapsecond.com>
>> int tmdiff(const struct tm *tm1, const struct tm *tm2, double *diff);
>> Return the time interval, *tm2 - *tm1, in SI seconds.
As a further example of the need to handle future dates, consider
that of producing Gantt charts and the like for project management.
These do require a time interval and not just the representation
and ordering of future events.
I don't think you have much hope of getting your realtime_t proposal
accepted by the wider unix community if ENOCANDO is the best it can
do for such.
>Ohh, and btw: That function is a hell to write and it will never
>qualify as efficient...
It's no more complicated than tm_realtime(), and no slower than two
invokations of it.
More information about the LEAPSECS