Weddington, Eric ha scritto:
-----Original Message-----
From:
avr-libc-dev-bounces+eric.weddington=atmel....@nongnu.org
[mailto:avr-libc-dev-bounces+eric.weddington=atmel....@nongnu.
org] On Behalf Of Daniele Basile
Sent: Friday, October 09, 2009 6:10 PM
To: avr-libc-dev@nongnu.org
Subject: [avr-libc-dev] Missing time.h posix
Hello,
we need to use some functions of posix standard time library.
We want to use
some time functions that convert unix time to a tm structure,
or vice versa,
(ie, mktime, gmtime..), but the avr libc doesn't include them.
Do you plan to include time.h in avr libc in future? if not,
how do we
contribute to avr libc?
Hi Daniele,
I believe I know some other people over at Develer. ;-) You can contribute like
any other open source project: just submit a patch. Please submit patches to
the Patch Tracker on the avr-libc project on Savannah.
We have had people ask about time.h in the past. The problem with it is that
there is no common hardware standard on the AVR for timekeeping. So our
standard answer has always been that we can't generally support time.h because
there's no common way to do this for all AVR projects. However we're always
open to new ideas and if you have a proposal then let's please discuss.
We know this problem and we think that is not simple to solve. However some time
functions makes only conversion operation, like mktime or gmtime, so we could
choose one subset of time functions that can work on every avr. We think this is
enough for all commons operation that need to manipulate time/date data. For
example we want to store time stamp that we had read from gps receiver and then
print its string representation; to do this we want to convert time stamp to
unix time and then use asctime to print it.
Let me know what you think.
Regards,
Daniele.
--
| [D]-o Ing. Daniele Basile - aste...@develer.com
| ||}-o Develer S.r.l., R&D dept.
| [B]-o http://www.develer.com/
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev