Sunday, October 4, 2009

Re: [LINUX_Newbies] Format of time and date to send to Linux system?

 

On Sun, Oct 4, 2009 at 11:56, lslonim2 <lslonim@our3cats.com> wrote:
>
> 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() call to query the
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."

__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

No comments:

Post a Comment