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