www.digitalmars.com         C & C++   DMDScript  

c++ - Misleading declaration in time.h

The include file time.h has the following declaration--
double __CLIB difftime(time_t t1,time_t t2);

It should be instead--
double __CLIB difftime(time_t t2,time_t t1);

Of course t1 and t2 are dummy variables, and time is relativistic, but... 
Dec 18 2003