[lkml]   [2001]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Getting system time in kernel.. (David Schwartz)  wrote on 02.10.01 in <>:

> On Tue, 02 Oct 2001 10:43:23 +0100, David Woodhouse wrote:
> > said:
> >> Any idea how to get the system time in a kernel module.... I tried this
> >>in solaris... but i am getting only the GMT (that too elapsed time) how
> >>do i convert this to my locale time....
> >You can't. You shouldn't need to convert to localtime inside the kernel.
> >What, precisely, are you trying to achieve?
> As an example, a filesystem might internally store local times in its
> inodes. You may not be free to change the on-disk format.

Such as FAT and derived filesystems?

That's why Linux has sys_tz. Though I think that a mount option to
override that might have been wise.

MfG Kai
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.046 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site