[ECOS] RTC -> Gregorian Conversion (off topic)
Trenton D. Adams
tadams@extremeeng.com
Thu Jul 19 14:51:00 GMT 2001
>
> "Trenton D. Adams" wrote:
> >
> > Sorry for the off topic question, but I don't know where else to
look
> > for a quick answer. Does anyone here have tables/routines for
> > calculating the actual date/time from an RTC value? Does eCos do
this
> > already? If so, where?
> >
> > I also need to go from date/time to RTC.
>
> There are various functions in the C library to convert between
time_t's
> and real dates if that's what you mean, although they don't take
into
> account all the esoteric rules for timezones. That's too much for a
> typical
> embedded system's needs. Currently the time() function will retrieve
the
> time from the wallclock device, so that would have to have been
> initialized
> correctly.
>
> Look around in languages/c/libc/time/current
>
Will do, thanks.
More information about the Ecos-discuss
mailing list