From: kaih@khms.westfalen.de (Kai Henningsen)
To: linux-kernel@vger.kernel.org
Subject: Re: Getting system time in kernel..
Date: 03 Oct 2001 10:33:00 +0200 [thread overview]
Message-ID: <8A89yinmw-B@khms.westfalen.de> (raw)
In-Reply-To: <20011003050142.AAA10921@shell.webmaster.com@whenever>
In-Reply-To: <3458.1002015803@redhat.com> <20011003050142.AAA10921@shell.webmaster.com@whenever>
davids@webmaster.com (David Schwartz) wrote on 02.10.01 in <20011003050142.AAA10921@shell.webmaster.com@whenever>:
> On Tue, 02 Oct 2001 10:43:23 +0100, David Woodhouse wrote:
>
> >mohammedazad@nestec.net 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
prev parent reply other threads:[~2001-10-03 10:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 9:14 MOHAMMED AZAD
2001-10-02 9:43 ` David Woodhouse
2001-10-03 5:01 ` David Schwartz
2001-10-03 5:09 ` Keith Owens
2001-10-03 6:31 ` David Schwartz
2001-10-03 9:18 ` David Woodhouse
2001-10-03 8:33 ` Kai Henningsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8A89yinmw-B@khms.westfalen.de \
--to=kaih@khms.westfalen.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome