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