Thanks to all for the comments. I have successfully ported the example from http://www.jbox.dk/sanos/source/include/time.h.html into my project. It works perfectly and I'm not worried about 10 seconds. Especially since according to http://en.wikipedia.org/wiki/Unix_time they are not planning to adjust Unix time again. Still seems like the useful functions: mktime() and gmtime() have a useful place in mspgcc. As for DST, I cannot use DST as this would wreak havoc with the datalogger output (two hours of data with the same time/date stamp doesn't really work too well. So, DST compensation is not only turned off, but disabled in my app.
Again, thanks for the help. -Mark -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Saturday, July 09, 2005 3:53 AM To: [email protected] Subject: Re: [Mspgcc-users] Re: time.h ? Hi, the time calculated with that functions is TAI +10 s because the daylight savings time is unused in the functions from http://www.jbox.dk/sanos/source/lib/time.c.html . That's not bad but for localtime you have have to add the daylight saving time. Regards, Rolf [email protected] schrieb am 09.07.05 04:12:18: > > // Now adjust according to timezone and daylight saving time > > If it's not adjusting for DST, what does the code following this comment do? > > > [email protected] wrote: > > >Hi, > > > >that's not bad but without leap seconds and without daylight saving time, > > > [snip] > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
