Go to main content

man pages section 5: File Formats

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

timezone(5)

Name

timezone - default time zone database

Synopsis

/etc/timezone

Description

The timezone file contains information regarding the default time zone 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 time zone is a pathname relative to the directory /usr/share/lib/zoneinfo.

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 installation software to initialize the time zone of the client system at installation time.

The timezone file does not set the time zone environment variable TZ. For information about the acceptable values for the TZ environment variable, see the environ(7) man page.

Examples

Example 1 Typical time zone line

Here is a typical line from the /etc/timezone file:

US/Eastern          East.Example.COM # US East Coast

Files

/etc/timezone

See Also

environ(7)

Automatically Installing Oracle Solaris 11.4 Systems