avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Missing time.h posix


From: Daniele Basile
Subject: Re: [avr-libc-dev] Missing time.h posix
Date: Fri, 09 Oct 2009 17:18:07 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Weddington, Eric ha scritto:
-----Original Message-----
From: address@hidden [mailto:address@hidden
org] On Behalf Of Daniele Basile
Sent: Friday, October 09, 2009 6:10 PM
To: address@hidden
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 - address@hidden
|   ||}-o  Develer S.r.l., R&D dept.
|  [B]-o  http://www.develer.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]