1 '\" te
   2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" Copyright 1989 AT&T
   4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7 .TH TIMEZONE 4 "Jun 26, 2003"
   8 .SH NAME
   9 TIMEZONE \- set default system time zone and locale
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 \fB/etc/TIMEZONE\fR
  14 \fB/etc/default/init\fR
  15 .fi
  16 
  17 .SH DESCRIPTION
  18 .sp
  19 .LP
  20 This file sets the time zone environment variable \fBTZ\fR, and the
  21 locale-related environment variables \fBLANG\fR, \fBLC_COLLATE\fR,
  22 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, \fBLC_MONETARY\fR, \fBLC_NUMERIC\fR, and
  23 \fBLC_TIME\fR.
  24 .sp
  25 .LP
  26 \fB/etc/TIMEZONE\fR is a symbolic link to \fB/etc/default/init\fR.
  27 .sp
  28 .LP
  29 The number of environment variables that can be set from
  30 \fB/etc/default/init\fR is limited to 20.
  31 .sp
  32 .LP
  33 The format of the file is:
  34 .sp
  35 .in +2
  36 .nf
  37 \fIVAR\fR\fB=\fR\fIvalue\fR
  38 .fi
  39 .in -2
  40 .sp
  41 
  42 .sp
  43 .LP
  44 where \fIVAR\fR is a timezone environment variable and \fIvalue\fR is the value
  45 assigned to the variable. \fIvalue\fR can be enclosed in double quotes (") or
  46 single quotes (\&'). The double or single quotes cannot be part of the value.
  47 .SH SEE ALSO
  48 .sp
  49 .LP
  50 \fBinit\fR(1M), \fBrtc\fR(1M), \fBctime\fR(3C), \fBenviron\fR(5)
  51 .SH NOTES
  52 .sp
  53 .LP
  54 When changing the \fBTZ\fR setting on x86 systems, you must make a
  55 corresponding change to the \fB/etc/rtc_config\fR file to account for the new
  56 timezone setting. This can be accomplished by executing the following commands,
  57 followed by a reboot, to make the changes take effect:
  58 .sp
  59 .in +2
  60 .nf
  61 # rtc \fB-z\fR \fIzone-name\fR
  62 # rtc \fB-c\fR
  63 
  64 .fi
  65 .in -2
  66 .sp
  67 
  68 .sp
  69 .LP
  70 where \fIzone-name\fR is the same name as the \fBTZ\fR variable setting.
  71 .sp
  72 .LP
  73 See \fBrtc\fR(1M) for information on the \fBrtc\fR command.