On 10 Oct 2009, at 08:56, Olaf Flebbe wrote:

>> Also, if we have two consistent time_t, why not simply subtract one  
>> from
>> the other, ABS it, and voila you have the time difference ? Or am I
>> missing something regarding usage of difftime ?
>
> yes. there is no _standard_ mapping of the data type time_t to any
> standard C/C++ data type.
>
> i.e. time_t may be a struct (for instance for  compilers which cannot
> handle 128 bit time_t).
>
> One should not guard <time.h> with an HAVE_WINDOWS_H because time.h is
> the correct header. See
>
> man 2 time, man difftime

Fair points :)

As a general note, the time.h isn't doing what I need really (and  
neither do the current SG time classes). I'm leaving the current code  
as is, until I decide how I really want to handle time. It's quite  
likely it will be based on the boost classes, since they are portable,  
and explicitly handle time zones and many other complex issues. The  
only problem will be store the values in the property tree.

Regards,
James


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to