do_gettimeofday() is just printing out a series of number which is not the date or time. Like, "1263873244".
On Jan 19, 1:34 pm, perumal316 <[email protected]> wrote: > You mean __DATE__ and __TIME__? It prints out the date and time the > module was compiled. I want to print the current date and time. > > On Jan 19, 12:26 pm, Daniel Eggleston <[email protected]> wrote: > > > what is it printing out? > > > On Mon, Jan 18, 2010 at 9:22 PM, perumal316 <[email protected]> wrote: > > > Hi, > > > > Currently I am writing a loadable kernel module. I want to printk the > > > current date and time. Is it possible? > > > > When I searched the net I only found one explaining about > > > do_gettimeofday() but it is not printing > > > out the actual date and time. Also I have used __DATE__ and __TIME__ > > > but these only print the date and time when the code is compiled. Is > > > it possible to get the actual date and time. > > > > Thanks in Advance, > > > Perumal > > > > -- > > > You received this message because you are subscribed to the Linux Users > > > Group. > > > To post a message, send email to [email protected] > > > To unsubscribe, send email to [email protected] > > > For more options, visit our group at > > >http://groups.google.com/group/linuxusersgroup > > > -- > > > Daniel > >
-- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
