LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to change timezone through system call (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-timezone-through-system-call-621256/)

shivakumar.a 02-15-2008 12:41 AM

how to change timezone through system call
 
hello,
is thr any method to change the timezone name with out affecting the actual time of the system...
i.e date on linux system would give this..
Thu Feb 14 22:35:51 PST 2008
is there any method by which can i change PST to IST through a system call without changing the time i.e with this change it should show the time
Thu Feb 14 22:35:51 IST 2008...

regards shivakumar

unSpawn 02-15-2008 06:15 AM

Isn't tzset() the equivalent of 'env TZ=IST executeSomeCommand'?


All times are GMT -5. The time now is 04:14 AM.