Re: How to set timezone



dbansal wrote:

Hi all,

Can somebody help me in setting timezone in Linux kernel using C
programming. I am able to set time value but not timezone.

Thanks in advance,
-- dbansal

Hi

You don't set it in the kernel, it's handled in userspace by glibc
or whatever libc library you have. glibc refers to /etc/localtime on my
Ubuntu 7.04 system, so I guess you will need to locate the correct file to
update and modify that, which may be a different config file followed by
running a utility program.

Can be very distribution dependant - which distro are you running?

Cheers

Tim
.



Relevant Pages

  • How to set timezone
    ... Can somebody help me in setting timezone in Linux kernel using C ... programming. ... I am able to set time value but not timezone. ...
    (comp.os.linux.development.system)
  • Re: Network modules
    ... embedded C programming, all the way through POSIX network development, ... Linux kernel development, and everything else you can imagine. ... newsgroup* are able to verify the information. ... It would appear that you are the troll here. ...
    (comp.lang.c)
  • Re: [Programming] kernel level grab packet
    ... > familiar with linux kernel programming. ... > internet packets before other applications. ... > supposed to go (might be other high level application). ...
    (alt.os.linux)
  • Re: How to set timezone
    ... Can somebody help me in setting timezone in Linux kernel using C ... I am able to set time value but not timezone. ... IBM-compatible system, you might also need to set UTC depending whether ...
    (comp.os.linux.development.system)
  • Re: Good Books to learn low-level C
    ... >> Expert C Programming ... >> Author: Peter van der Linden ... You will probably learn more about hardware by following ... Linux kernel is speciallized to one brand of hardware, ...
    (comp.lang.c)