]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/localtime.xml
core: introduce new Type=exec service type
[thirdparty/systemd.git] / man / localtime.xml
CommitLineData
801f44bb 1<?xml version='1.0'?> <!--*-nxml-*-->
801f44bb 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
801f44bb
LP
4
5<!--
572eb058 6 SPDX-License-Identifier: LGPL-2.1+
801f44bb
LP
7-->
8
608da9e9 9<refentry id="localtime">
798d3a52
ZJS
10 <refentryinfo>
11 <title>localtime</title>
12 <productname>systemd</productname>
798d3a52
ZJS
13 </refentryinfo>
14
15 <refmeta>
16 <refentrytitle>localtime</refentrytitle>
17 <manvolnum>5</manvolnum>
18 </refmeta>
19
20 <refnamediv>
21 <refname>localtime</refname>
22 <refpurpose>Local timezone configuration file</refpurpose>
23 </refnamediv>
24
25 <refsynopsisdiv>
26 <para><filename>/etc/localtime</filename> -&gt; <filename>../usr/share/zoneinfo/…</filename></para>
27 </refsynopsisdiv>
28
29 <refsect1>
30 <title>Description</title>
31
32 <para>The <filename>/etc/localtime</filename> file configures the
33 system-wide timezone of the local system that is used by
34 applications for presentation to the user. It should be an
35 absolute or relative symbolic link pointing to
36 <filename>/usr/share/zoneinfo/</filename>, followed by a timezone
37 identifier such as <literal>Europe/Berlin</literal> or
38 <literal>Etc/UTC</literal>. The resulting link should lead to the
39 corresponding binary
40 <citerefentry project='man-pages'><refentrytitle>tzfile</refentrytitle><manvolnum>5</manvolnum></citerefentry>
41 timezone data for the configured timezone.</para>
42
43 <para>Because the timezone identifier is extracted from the
44 symlink target name of <filename>/etc/localtime</filename>, this
45 file may not be a normal file or hardlink.</para>
46
47 <para>The timezone may be overridden for individual programs by
48 using the <varname>$TZ</varname> environment variable. See
49 <citerefentry project='man-pages'><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
50
51 <para>You may use
52 <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
53 to change the settings of this file from the command line during
54 runtime. Use
55 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
56 to initialize the time zone on mounted (but not booted) system
57 images.</para>
58 </refsect1>
59
60 <refsect1>
61 <title>See Also</title>
62 <para>
63 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
64 <citerefentry project='man-pages'><refentrytitle>tzset</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
65 <citerefentry><refentrytitle>localtime</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
66 <citerefentry><refentrytitle>timedatectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
67 <citerefentry><refentrytitle>systemd-timedated.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
68 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
69 </para>
70 </refsect1>
801f44bb
LP
71
72</refentry>