localtime.xml revision e9dd9f9547350c7dc0473583b5c2228dc8f0ab76
369N/A<?xml version='1.0'?> <!--*-nxml-*-->
369N/A<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
369N/A<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
369N/A "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
369N/A
369N/A<!--
369N/A This file is part of systemd.
369N/A
369N/A Copyright 2010 Lennart Poettering
369N/A Copyright 2012 Shawn Landden
369N/A
369N/A systemd is free software; you can redistribute it and/or modify it
369N/A under the terms of the GNU Lesser General Public License as published by
369N/A the Free Software Foundation; either version 2.1 of the License, or
369N/A (at your option) any later version.
369N/A
369N/A systemd is distributed in the hope that it will be useful, but
369N/A WITHOUT ANY WARRANTY; without even the implied warranty of
369N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
369N/A Lesser General Public License for more details.
5680N/A
5680N/A You should have received a copy of the GNU Lesser General Public License
5622N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
369N/A-->
5706N/A
5680N/A<refentry id="localtime">
369N/A <refentryinfo>
369N/A <title>localtime</title>
5706N/A <productname>systemd</productname>
844N/A
5706N/A <authorgroup>
5706N/A <author>
5622N/A <contrib>Developer</contrib>
369N/A <firstname>Lennart</firstname>
5680N/A <surname>Poettering</surname>
369N/A <email>lennart@poettering.net</email>
5680N/A </author>
369N/A <author>
5706N/A <contrib>Developer</contrib>
5706N/A <firstname>Shawn</firstname>
369N/A <surname>Landden</surname>
369N/A <email>shawnlandden@gmail.com</email>
369N/A </author>
5680N/A </authorgroup>
5680N/A </refentryinfo>
369N/A
369N/A <refmeta>
369N/A <refentrytitle>localtime</refentrytitle>
369N/A <manvolnum>5</manvolnum>
369N/A </refmeta>
369N/A
369N/A <refnamediv>
<refname>localtime</refname>
<refpurpose>Local timezone configuration file</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para><filename>/etc/localtime</filename> -> <filename>/usr/share/zoneinfo/…</filename></para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>The <filename>/etc/localtime</filename> file
configures the system-wide timezone of the local
system that is used by applications for presentation
to the user. It should be an absolute or relative
symbolic link pointing to
<filename>/usr/share/zoneinfo/</filename>, followed by
a timezone identifier such as
<literal>Europe/Berlin</literal> or
<literal>Etc/UTC</literal>. The resulting link should
lead to the corresponding binary
<citerefentry><refentrytitle>tzfile</refentrytitle><manvolnum>5</manvolnum></citerefentry>
timezone data for the configured timezone.</para>
<para>As the timezone identifier is extracted from
the symlink target name of
<filename>/etc/localtime</filename> this file may not
be a normal file or hardlink.</para>
<para>The timezone may be overridden for individual
programs by using the TZ environment variable. See
<citerefentry><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
<para>You may use
<citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
to change the settings of this file from the command
line.</para>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>tzset</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>localtime</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd-timedated.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
</para>
</refsect1>
</refentry>