LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2008, 12:41 AM   #1
shivakumar.a
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 02-15-2008, 06:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Isn't tzset() the equivalent of 'env TZ=IST executeSomeCommand'?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make centos 4.5's system call using vDSO(call *%gs:0x10) instead of int80 tclwp Red Hat 3 08-06-2007 12:07 AM
How to change the timezone from EDT to PDT using Ntpd AjiNIMC Linux - Server 1 05-28-2007 01:55 PM
TimeZone change doesn't effect current process cruiserfriend Linux - Software 4 01-17-2006 03:27 AM
Change timezone using date davholla Linux - General 16 11-09-2005 02:53 AM
How to configure TimeZone to change automatic .. piraxter Slackware 1 04-09-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration