Re: current date & time in kernel

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

 



On Fri, Mar 14, 2003 at 05:07:52PM -0500, Puja Gupta wrote:
> 1) do we have direct functions that we could use in kernel?
> 2) we can get time from epoch using gettimeofday? So, how do I convert 
> it to the current date and time string.  Is there something similar to 
> userspace ctime in kernel?

If you wish to do this to system logs, you probably should be doing the
logging and time functions in a userspace helper program. A small daemon
that reads an encoded version of logging info through a character
device, filesystem, or proc file, and writes a prettified formatted log
to some other file is probably the best way to go.

-- 
Demand voting integrity: http://verify.stanford.edu/evote.html

Attachment: pgp00347.pgp
Description: PGP signature


[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