chiark / gitweb /
NEWS: fix typo
[elogind.git] / man / localtime.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6   This file is part of systemd.
7
8   Copyright 2010 Lennart Poettering
9   Copyright 2012 Shawn Landden
10
11   systemd is free software; you can redistribute it and/or modify it
12   under the terms of the GNU Lesser General Public License as published by
13   the Free Software Foundation; either version 2.1 of the License, or
14   (at your option) any later version.
15
16   systemd is distributed in the hope that it will be useful, but
17   WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19   Lesser General Public License for more details.
20
21   You should have received a copy of the GNU Lesser General Public License
22   along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 -->
24
25 <refentry id="localtime">
26   <refentryinfo>
27     <title>localtime</title>
28     <productname>systemd</productname>
29
30     <authorgroup>
31       <author>
32         <contrib>Developer</contrib>
33         <firstname>Lennart</firstname>
34         <surname>Poettering</surname>
35         <email>lennart@poettering.net</email>
36       </author>
37       <author>
38         <contrib>Developer</contrib>
39         <firstname>Shawn</firstname>
40         <surname>Landden</surname>
41         <email>shawnlandden@gmail.com</email>
42       </author>
43     </authorgroup>
44   </refentryinfo>
45
46   <refmeta>
47     <refentrytitle>localtime</refentrytitle>
48     <manvolnum>5</manvolnum>
49   </refmeta>
50
51   <refnamediv>
52     <refname>localtime</refname>
53     <refpurpose>Local timezone configuration file</refpurpose>
54   </refnamediv>
55
56   <refsynopsisdiv>
57     <para><filename>/etc/localtime</filename> -&gt; <filename>../usr/share/zoneinfo/…</filename></para>
58   </refsynopsisdiv>
59
60   <refsect1>
61     <title>Description</title>
62
63     <para>The <filename>/etc/localtime</filename> file configures the
64     system-wide timezone of the local system that is used by
65     applications for presentation to the user. It should be an
66     absolute or relative symbolic link pointing to
67     <filename>/usr/share/zoneinfo/</filename>, followed by a timezone
68     identifier such as <literal>Europe/Berlin</literal> or
69     <literal>Etc/UTC</literal>. The resulting link should lead to the
70     corresponding binary
71     <citerefentry project='man-pages'><refentrytitle>tzfile</refentrytitle><manvolnum>5</manvolnum></citerefentry>
72     timezone data for the configured timezone.</para>
73
74     <para>Because the timezone identifier is extracted from the
75     symlink target name of <filename>/etc/localtime</filename>, this
76     file may not be a normal file or hardlink.</para>
77
78     <para>The timezone may be overridden for individual programs by
79     using the <varname>$TZ</varname> environment variable. See
80     <citerefentry project='man-pages'><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
81
82     <para>You may use
83     <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
84     to change the settings of this file from the command line during
85     runtime. Use
86     <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
87     to initialize the time zone on mounted (but not booted) system
88     images.</para>
89   </refsect1>
90
91   <refsect1>
92       <title>See Also</title>
93       <para>
94         <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
95         <citerefentry project='man-pages'><refentrytitle>tzset</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
96         <citerefentry><refentrytitle>localtime</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
97         <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
98         <citerefentry><refentrytitle>systemd-timedated.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
99         <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
100       </para>
101   </refsect1>
102
103 </refentry>