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

1 view
Skip to first unread message

Eviltime

unread,
Apr 29, 2007, 8:43:31 AM4/29/07
to kernel...@nl.linux.org
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 eca...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Alan Menegotto

unread,
May 1, 2007, 7:58:12 PM5/1/07
to Eviltime, kernel...@nl.linux.org

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


--
Saudações

Alan Menegotto

Reply all
Reply to author
Forward
0 new messages