TIMEZONE(3) BSD Library Functions Manual TIMEZONE(3)NAME
timezone -- return the timezone abbreviation
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
char *
timezone(int zone, int dst);
DESCRIPTION
This interface is for compatibility only; it is impossible to reliably map timezone's arguments to a time zone abbreviation. See ctime(3).
The timezone() function returns a pointer to a time zone abbreviation for the specified zone and dst values. The zone argument is the number
of minutes west of GMT and dst is non-zero if daylight savings time is in effect.
SEE ALSO ctime(3)HISTORY
A timezone() function appeared in Version 7 AT&T UNIX.
BSD April 19, 1994 BSD
Check Out this Related 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)
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
Hey Neo - or other Unix.com 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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)