How to specify timezone in linux using C -


I was trying to determine the timezone of my system, and was trying to use settimeofday () Which takes time zone structure is an argument, but just read it that the structure is obsolete () How can I go about doing this?

Thanks in advance.

EDIT: Uh, I'm really stupid. / P>

I have created a link and compiled it:

  #include & lt; Stdio.h & gt; Zero main () {printf ("This is the link \ n"); }  

Created a target.c and compiled it:

  #include & lt; Stdio.h & gt; Zero main () {printf ("This is the goal \ n"); }  

and then tried the simlink function in a test program:

  #include  

This gives me a split error for some reason. Am I doing something wrong? See

set the timezone for .

/ usr / share / zoneinfo / for the entire system. Under

the appropriate file should be symlink / etc / localtime

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -