[En-Nut-Discussion] Inconsistence in RTC api
Harald Kipp
harald.kipp at egnite.de
Wed Mar 29 17:11:09 CEST 2006
At 13:20 29.03.2006 +0200, you wrote:
>Hi all:
>
>I found an inconsistency at the API for the RTC that comes with Ethernut
>3: X12RtcSetClock receives the year relative to 2000, but X12RtcGetClock
>returns it relative to 1900. It would be better if both APIs used 1900
>or 2000.
>
>I think...
Me too. The correct interpretation is specified in the C standard,
which says "This is the number of full calendar years since 1900."
Which version are you referring to? There had been fixes in 4.0.2
and 4.1.2. See
http://cvs.sourceforge.net/viewcvs.py/ethernut/nut/ChangeLog?view=markup
Harald
More information about the En-Nut-Discussion
mailing list