On Sun, Oct 4, 2009 at 11:56, lslonim2 <lslonim@our3cats.
>
> So my question is: Is there a standard Linux format for transmitting time in hh:mm:ss format, and if so, what are the system calls that use it?
>
> Thanks very much,
>
> Lloyd
Hey Lloyd,
This is a VERY uneducated opinion, but you're in the wrong place to
ask that, though I imagine that there are some here who could and may
give you a good answer. If you're trying to run an embedded Linux,
you really should try a list specific to Embedded Linuxes.
On the more generic side, check the various headers for time (I think
the big one is time.h??) in the linux source tree.
I think most things make use of the gettimeofday(
hardware clock on a given system. I'm not a C programmer, but I know
just enough to be dangerous :-)
As for format, I think you are correct that the standard is indeed
Unix time (seconds since 1970) but that may be handled differently by
Embedded OSs given the limited memory and processor power available in
embedded systems.
I wish I could tell you more, but maybe that'll give you a place to
start, and maybe someone else here who does some kernel programming
could correct me or fill in the details.
Cheers,
Jeff
--
Ogden Nash - "The trouble with a kitten is that when it grows up,
it's always a cat."
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
No comments:
Post a Comment