Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

system last boot, in C

Name: Anonymous 2007-04-07 17:07 ID:X+5rb0Y3

i'm programming in C to output the time of the system's last boot (linux).

can't read from /var/log/ since i don't have permission.

halp plz.

Name: Anonymous 2007-04-07 17:29 ID:X+5rb0Y3

i can go to /proc/uptime and read it from there

but is there a way for it to show the time in format of day hour:min:sec?

the btime in /proc/stat shows the seconds since 1/1/1970 till the time it was last booted, but thats not helping much..

=((

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List