Re: print current date and time in a kernel module

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

 



Please don't top-post.

On Thu, Jan 24, 2008 at 05:29:09PM +0530, Manoj Gupta wrote:
> In my understading, "xtime" variable stores the current time and date, which
> has
> 
> tv_sec - seconds elapsed since January 1, 1970 (UTC)
> tv_nsec - nanoseconds in the last second

That is indeed UTC, but my current time is 1 hour ahead of UTC, and
yours appears to be 5:30 hours ahead of UTC.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital 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