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
/ etc / localtime
Comments
Post a Comment