[Icc-avr] RTC - how to compute the difference in minutes
Jaspers, Ton
t.jaspers at cpseurope.com
Wed Nov 28 11:04:30 PST 2007
Ad 1. No but you can very easily add it.
Ad 2. Open source time does not use float's, it uses unsigned long's.
I have succesfully ported the time.h defined code to Coldfire, AVR and
others.
It takes a few hours (mostly testing) provided you have some experience
with
these functions. After that the whole wealth of Linux time/date
conversion
functions is available, including leap years, daylight saving time and
formatting to any known time/date format, including the scilly American
ones.
(MLSD first).
Cheers,
Ton
From: Robert Rademacher
Hi,
1) ICCAVR compiler DOES NOT have time.h.
2) It needs to be calculated without using the float variable.
Robert
What about google-ing for open source implementation of time.h
functions?
gmtime() and localtime() et al already know how to deal with
leap year etc
http://en.wikipedia.org/wiki/Time.h for time.h info.
HTH
Ivan Vernot
--
More information about the Icc-avr
mailing list