All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Schwartz <davids@webmaster.com>
To: <dwmw2@infradead.org>, MOHAMMED AZAD <mohammedazad@nestec.net>
Cc: Linux-Kernel (E-mail) <linux-kernel@vger.kernel.org>
Subject: Re: Getting system time in kernel..
Date: Tue, 2 Oct 2001 22:01:41 -0700	[thread overview]
Message-ID: <20011003050142.AAA10921@shell.webmaster.com@whenever> (raw)
In-Reply-To: <3458.1002015803@redhat.com>



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.

	DS



  reply	other threads:[~2001-10-03  5:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02  9:14 Getting system time in kernel MOHAMMED AZAD
2001-10-02  9:43 ` David Woodhouse
2001-10-03  5:01   ` David Schwartz [this message]
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

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=20011003050142.AAA10921@shell.webmaster.com@whenever \
    --to=davids@webmaster.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mohammedazad@nestec.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.