]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/localtime.xml
tmpfiles: fix compilation without acl support
[thirdparty/systemd.git] / man / localtime.xml
CommitLineData
801f44bb
LP
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
608da9e9 10 Copyright 2012 Shawn Landden
801f44bb
LP
11
12 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
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
801f44bb
LP
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
5430f7f2 20 Lesser General Public License for more details.
801f44bb 21
5430f7f2 22 You should have received a copy of the GNU Lesser General Public License
801f44bb
LP
23 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24-->
25
608da9e9 26<refentry id="localtime">
801f44bb 27 <refentryinfo>
7aa955af 28 <title>localtime</title>
801f44bb
LP
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>
608da9e9
SL
38 <author>
39 <contrib>Developer</contrib>
40 <firstname>Shawn</firstname>
41 <surname>Landden</surname>
42 <email>shawnlandden@gmail.com</email>
43 </author>
801f44bb
LP
44 </authorgroup>
45 </refentryinfo>
46
47 <refmeta>
608da9e9 48 <refentrytitle>localtime</refentrytitle>
801f44bb
LP
49 <manvolnum>5</manvolnum>
50 </refmeta>
51
52 <refnamediv>
608da9e9 53 <refname>localtime</refname>
e9dd9f95 54 <refpurpose>Local timezone configuration file</refpurpose>
801f44bb
LP
55 </refnamediv>
56
57 <refsynopsisdiv>
3c8fa0fd 58 <para><filename>/etc/localtime</filename> -&gt; <filename>../usr/share/zoneinfo/…</filename></para>
801f44bb
LP
59 </refsynopsisdiv>
60
61 <refsect1>
62 <title>Description</title>
63
608da9e9 64 <para>The <filename>/etc/localtime</filename> file
e9dd9f95 65 configures the system-wide timezone of the local
801f44bb 66 system that is used by applications for presentation
050a99bd
LP
67 to the user. It should be an absolute or relative
68 symbolic link pointing to
69 <filename>/usr/share/zoneinfo/</filename>, followed by
e9dd9f95 70 a timezone identifier such as
050a99bd
LP
71 <literal>Europe/Berlin</literal> or
72 <literal>Etc/UTC</literal>. The resulting link should
73 lead to the corresponding binary
5aded369 74 <citerefentry project='man-pages'><refentrytitle>tzfile</refentrytitle><manvolnum>5</manvolnum></citerefentry>
e9dd9f95 75 timezone data for the configured timezone.</para>
608da9e9 76
409dee2e 77 <para>Because the timezone identifier is extracted from
050a99bd 78 the symlink target name of
409dee2e 79 <filename>/etc/localtime</filename>, this file may not
050a99bd 80 be a normal file or hardlink.</para>
801f44bb 81
e9dd9f95 82 <para>The timezone may be overridden for individual
801f44bb 83 programs by using the TZ environment variable. See
5aded369 84 <citerefentry project='man-pages'><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
dbc4fbae
LP
85
86 <para>You may use
87 <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
88 to change the settings of this file from the command
30f10abf
LP
89 line during runtime. Use
90 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
91 to initialize the time zone on mounted (but not
92 booted) system images.</para>
801f44bb
LP
93 </refsect1>
94
801f44bb
LP
95 <refsect1>
96 <title>See Also</title>
97 <para>
dbc4fbae 98 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
5aded369 99 <citerefentry project='man-pages'><refentrytitle>tzset</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
dbc4fbae
LP
100 <citerefentry><refentrytitle>localtime</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
101 <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
30f10abf
LP
102 <citerefentry><refentrytitle>systemd-timedated.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
103 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
801f44bb
LP
104 </para>
105 </refsect1>
106
107</refentry>