Re: How to determine the current date and time (kernel 2.6)

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

 



On 4/29/07, Eviltime <webmaster@xxxxxxxxxxxx> wrote:
Hi, how can I fill up a rtc_time struct with the current date and time
information?
I'm running kernel 2.6.20 and i can't find localtime() in the kernel
sources..
Have you got other ways to do the same thing?

Thanks in advance
Marco.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



Maybe gettimeofday(2)
(http://www.die.net/doc/linux/man/man2/gettimeofday.2.html) is what
you need.


--
Saudações

Alan Menegotto

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux