LinuxQuestions.org
Review your favorite Linux distribution.
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 10-08-2009, 02:23 AM   #1
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 150

Rep: Reputation: 15
Get Total Timezone name


Using command "date +%Z" , i got timezone as "IST". But I need to get total time zone name like "Asia/Culcutta".This is for IST(India Stadard Time).

Is there any command to get like this on linux system?

ThanQ,
Nagendra Rednam
 
Old 10-08-2009, 08:37 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Hi,

Not that I'm aware of, if you need it for a script maybe this will work for you:

Code:
grep ZONE /etc/sysconfig/clock | cut -d= -f2 | sed s/\"//g
cheers
 
Old 10-08-2009, 08:46 AM   #3
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 150

Original Poster
Rep: Reputation: 15
ThanQ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/etc/TIMEZONE snippy Solaris / OpenSolaris 1 06-24-2008 07:35 PM
24 hrs TimeZone santhosh23 Linux - General 1 11-05-2007 03:27 PM
Timezone issues emlsnws Grafpup 2 06-13-2007 10:36 AM
timezone problem Lord Zoltar Linux - General 5 09-13-2004 11:38 PM
Timezone Again rch LQ Suggestions & Feedback 5 05-20-2003 12:49 AM


All times are GMT -5. The time now is 12:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration