On Mon, Jan 18, 2010 at 6:34 PM, Chew Esmero <chew.esm...@gmail.com> wrote:
> you can use the __DATE__ & __TIME__ macro.

That's only the date and time the code is built, not the current one.

> On Jan 19, 10:23 am, perumal316 <perumal...@gmail.com> wrote:
>> Hi,
>>
>> Currently I am writing a loadable kernel module. I want to printk the
>> current date and time.

Why do you want to do this?  Every printk is stamped with the current
time offset from boot.

In the end, no, you really can't do this well, think of all of the
timezone issues...

good luck,

greg k-h

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to