Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

timezone(4) [opensolaris man page]

timezone(4)							   File Formats 						       timezone(4)

NAME
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)

Check Out this Related Man Page

PMNEWCONTEXTZONE(3)					     Library Functions Manual					       PMNEWCONTEXTZONE(3)

NAME
pmNewContextZone - establish a reporting timezone based on a PMAPI context C SYNOPSIS
#include <pcp/pmapi.h> int pmNewContextZone(void); cc ... -lpcp DESCRIPTION
The current reporting timezone affects the timezone used by pmCtime(3) and pmLocaltime(3). If the current PMAPI context is an archive, pmNewContextZone uses the timezone from the archive label record to set the current reporting timezone. If the current PMAPI context corresponds to a host source of metrics, pmNewContextZone executes a pmFetch(3) to retrieve the value for the metric pmcd.timezone and uses that to set the current reporting timezone. In both cases, pmNewContextZone returns a value to identify the current reporting timezone that may be used in a subsequent call to pmUse- Zone(3) to restore this reporting timezone. SEE ALSO
PMAPI(3), pmCtime(3), pmFetch(3), pmGetConfig(3), pmLocaltime(3), pmNewContext(3), pmNewZone(3), pmUseZone(3), pmWhichZone(3), pcp.conf(5), pcp.env(5) and environ(5). DIAGNOSTICS
PM_ERR_NOCONTEXT the current PMAPI context is not valid other a return value less than zero indicates a fatal error from a system call, most likely malloc(3C) Performance Co-Pilot PCP PMNEWCONTEXTZONE(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Timezone

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. UNIX for Dummies Questions & Answers

Timezone

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

3. UNIX for Dummies Questions & Answers

How to compress a directory on a Sun Solaris 5.7 ?

Hi, Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ? Thanks (4 Replies)
Discussion started by: sameerdes
4 Replies

4. UNIX for Dummies Questions & Answers

Timezone Problems

Hi all, i have running an hp-ux a-class server with hp-ux 11.00. All users without root are using the wrong timezone. root is using METDST, all others are using EDT. I have checked /etc/profile /etc/TIMEZONE /etc/ntp.conf and the .profiles from the users. But there is no failure... Is... (4 Replies)
Discussion started by: ortsvorsteher
4 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. Shell Programming and Scripting

File Splitting

Hi, I have a big file on Unix Sun Solaris machine where the data is as shown below. LE8S line 1 line 2 line 3 LE8E GE8S line 1 line 2 line 3 GE8E LE8S line 1 (5 Replies)
Discussion started by: dncs
5 Replies

7. 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

8. Shell Programming and Scripting

Sed: add text if pattern not found

Hello, I would like to add the line TIMEZONE="CET" if the pattern TIMEZONE is not found between the range <JOB and JOB> : Example: Src file: <!DOCTYPE DEFTABLE SYSTEM "deftable.dtd"> <DEFTABLE > <JOB TASKTYPE="Job" TIMEFROM="0030" TIMEZONE="CET" </JOB> <JOB... (5 Replies)
Discussion started by: mutunzi
5 Replies

9. 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

10. 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

11. Shell Programming and Scripting

Setting a TZ variable in a script

Hello all, I know this must be simple .... but i can't grasp what could be the issue. I'm trying to setup the timezone variable (to the unix command date) according to what i find in a value that i got from parsing the config file. The end result would be setting the log file with this new... (4 Replies)
Discussion started by: maverick72
4 Replies

12. 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

13. Programming

TZ, localtime and strftime problem on AIX and Solaris

Hello all, I have the following code that seems to be misbehaving depending on the timezone setting (TZ Environment variable). It gives the correct value when TZ is in POSIX format and the wrong value when in OLSON format. #include <stdio.h> #include <stdlib.h> #include <time.h> #include... (6 Replies)
Discussion started by: biju64
6 Replies

14. 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

15. AIX

Timezone issues -- Daylight savings

Hello, I like to set the CDT timezone, but it shows CST still even after I activated the DayLight Time cat /etc/environment | grep TZ TZ=CST6CDT Now looking at date: root@test8:/>date Tue Dec 20 05:34:45 CST 2016 How can I make it from CST to CDT ? thanks (5 Replies)
Discussion started by: filosophizer
5 Replies