Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

timezone(8) [osf1 man page]

timezone(8)						      System Manager's Manual						       timezone(8)

timezone - Sets timezone information. SYNOPSIS
/usr/sbin/timezone [-d] DESCRIPTION
The timezone command is an interactive program for setting and changing the timezone for users running in the SVID 2 habitat. The program prompts you for specific information regarding the timezone for your area and outputs the settings of both the TZ and TZC environment vari- ables to the /etc/svid2_tZ file. If you specify the -d option, the timezone command outputs only the setting of the TZC environment vari- able. You must execute this command if you are using the SVID 2 habitat. Once it is run, it does not need to be run again unless the system is re-installed. RESTRICTIONS
You must have superuser privileges to use the timezone command. Refer to the System V Compatibility User's Guide for information on the System V habitat. SEE ALSO
Functions: timezone(3) System V Compatibility User's Guide System Administration timezone(8)

Check Out this Related Man Page

timezone(4)							   File Formats 						       timezone(4)

timezone - default timezone data base SYNOPSIS
/etc/timezone DESCRIPTION
The timezone file contains information regarding the default timezone for each host in a domain. Alternatively, a single default line for the entire domain may be specified. Each entry has the format: Timezone-name official-host-or-domain-name Items are separated by any number of blanks and/or TAB characters. A `#' indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines which search the file. The timezone is a pathname relative to the directory /usr/share/lib/zone- info. This file is not actually referenced by any system software; it is merely used as a source file to construct the NIS timezone.byname map. This map is read by sysidtool(1M) to initialize the timezone of the client system at installation time. For more information, see the Solaris Express Installation Guide: Basic Installations. The timezone file does not set the timezone environment variable TZ. See TIMEZONE(4) for information to set the TZ environment variable. EXAMPLES
Example 1 Typical timezone line Here is a typical line from the /etc/timezone file: US/Eastern East.Sun.COM #Sun East Coast FILES
/etc/timezone SEE ALSO
sysidtool(1M), TIMEZONE(4) Solaris Express Installation Guide: Basic Installations SunOS 5.11 18 Feb 2003 timezone(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


Hello again, under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am. i dont know who reads this file to set after reading the timezone under /usr/lib/tztab. my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies

2. Post Here to Contact Site Administrators and Moderators

Daylight Savings - Timezones etc...

Hey Neo - or other staffers - I've selected my Timezone for the forums - however it's wrong for my Country - as we have Daylight Savings for 6 months of the year - so currently were 1 hour ahead of the time that is provided in the personal options pages. Can we add another for this - no... (5 Replies)
Discussion started by: peter.herlihy
5 Replies

3. UNIX for Dummies Questions & Answers


Hi, I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer. Now it's set on WET and I want to set the timezone to CET (GMT +1) Plz somebody help me. Regards Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies

4. UNIX for Advanced & Expert Users


HI ; I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1. So i have every time to "set TZ=GMT ; export $TZ" . How can i set the TZ=GMT at the startup defenitely. Thanks :) (7 Replies)
Discussion started by: oss
7 Replies

5. Solaris

SunOS 5.6: timezone data patch

Does anyone know if there is a patch for SunOS 5.6 timezone update for new daylight savings times. I have looked and have updated my 5.8 machine. Can not find one for 5.6. I still use one box for a certian piece of hardware that can not use the newer versions. (6 Replies)
Discussion started by: vacomman
6 Replies

6. Solaris

US timezone changes Mar 2007

Hi As per Suns guide, I have installed the 2 patches that are required to prepare for the US DST change. The first patch updates the zoneinfo database in /usr/share/lib/zoneinfo and I can test that the patch has worked by running the following command zdump -v US/Eastern | grep 2007 The... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

7. Programming

time in microseconds

Hi I want to print the current local time in microseconds How ? (16 Replies)
Discussion started by: avnerht
16 Replies

8. Shell Programming and Scripting

Timezone in +/-HHMM format

Hey guys, is thr any easy way of fetching Timezone of the Solaris server in (+/-)HHMM format using shell scripts. Say, if the current time zone is GMT, the script should return +0000 If the current timezone is Asia/Calcutta in /etc/TIMEZONE, the scripts has to return +0530 (5 Replies)
Discussion started by: justsam
5 Replies

9. Shell Programming and Scripting

Setting of two time formats in one machine

Hi, Is it possible to set the two time formats in a single machine. My machine time is in EST and the logs are in PST. What would be the issue, and how to make change of this.? (5 Replies)
Discussion started by: gsiva
5 Replies

10. Shell Programming and Scripting

Script to change Timezone(Solaris)

india 22/11/2009 10:00:00 AM sweden 22/11/2009 01:30:00 PM As mentioned above i will get the datetime string from my customer and i need to change that String into diffrnt timezone as mentioned above. ---------- Post updated at 01:54 AM ---------- Previous update was at 01:01 AM ----------... (5 Replies)
Discussion started by: vikas482
5 Replies

11. UNIX for Dummies Questions & Answers

How to set correct timezone and date?

Hi all. I changed the date to go ahead one hour for DST this past weekend and date command shows: /home/oracle>date Wed Mar 17 12:40:12 EST 2010 /home/oracle>echo $TZ Canada/Eastern I think it should be reading EDT and not EST as My Dataprotector is reporting backups at... (5 Replies)
Discussion started by: jamie_collins
5 Replies

12. Red Hat

Cronjob not working at user timezone

I have created user and set timezone different from root user timezone in .bash_profile of user using TZ command, i have created cronjob for user using crontab -e, my concern is that job schedule in cronjob must executive as per timezone of user , but i am getting that job schedule in cron of user... (6 Replies)
Discussion started by: Mahenaaz
6 Replies

13. Programming

Shell script to get Timezone

Hi friends i need to writing a code to use the longitue and latitude to get a time zone. Example below Logitude Latitude OMAN 21.9 56.6 BRGHT 27.57 -89.4 BLUGL 26.25 -91.95 latitude lines run horizontally Longitude are vertical lines ... (13 Replies)
Discussion started by: ajayram_arya
13 Replies

14. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

15. Solaris

Changing only time zone file not the timezone without reboot

Hello all, I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed, can this take effect without rebooting Solaris 10? (9 Replies)
Discussion started by: Amr.Es
9 Replies