]> git.proxmox.com Git - systemd.git/blob - man/localtime.html
Imported Upstream version 219
[systemd.git] / man / localtime.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>localtime</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
2 a.headerlink {
3 color: #c60f0f;
4 font-size: 0.8em;
5 padding: 0 4px 0 4px;
6 text-decoration: none;
7 visibility: hidden;
8 }
9
10 a.headerlink:hover {
11 background-color: #c60f0f;
12 color: white;
13 }
14
15 h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
16 visibility: visible;
17 }
18 </style><a href="index.html">Index </a>·
19 <a href="systemd.directives.html">Directives </a>·
20 <a href="../python-systemd/index.html">Python </a>·
21 <a href="../libudev/index.html">libudev </a>·
22 <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 219</span><hr><div class="refentry"><a name="localtime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>localtime — Local timezone configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/localtime</code> -&gt; <code class="filename">../usr/share/zoneinfo/…</code></p></div><div class="refsect1"><a name="idm139983687234672"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>The <code class="filename">/etc/localtime</code> file configures the
23 system-wide timezone of the local system that is used by
24 applications for presentation to the user. It should be an
25 absolute or relative symbolic link pointing to
26 <code class="filename">/usr/share/zoneinfo/</code>, followed by a timezone
27 identifier such as "<code class="literal">Europe/Berlin</code>" or
28 "<code class="literal">Etc/UTC</code>". The resulting link should lead to the
29 corresponding binary
30 <a href="http://man7.org/linux/man-pages/man5/tzfile.5.html"><span class="citerefentry"><span class="refentrytitle">tzfile</span>(5)</span></a>
31 timezone data for the configured timezone.</p><p>Because the timezone identifier is extracted from the
32 symlink target name of <code class="filename">/etc/localtime</code>, this
33 file may not be a normal file or hardlink.</p><p>The timezone may be overridden for individual programs by
34 using the <code class="varname">$TZ</code> environment variable. See
35 <a href="http://man7.org/linux/man-pages/man7/environ.7.html"><span class="citerefentry"><span class="refentrytitle">environ</span>(7)</span></a>.</p><p>You may use
36 <a href="timedatectl.html"><span class="citerefentry"><span class="refentrytitle">timedatectl</span>(1)</span></a>
37 to change the settings of this file from the command line during
38 runtime. Use
39 <a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a>
40 to initialize the time zone on mounted (but not booted) system
41 images.</p></div><div class="refsect1"><a name="idm139983683512608"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
42 <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
43 <a href="http://man7.org/linux/man-pages/man3/tzset.3.html"><span class="citerefentry"><span class="refentrytitle">tzset</span>(3)</span></a>,
44 <a href="localtime.html"><span class="citerefentry"><span class="refentrytitle">localtime</span>(3)</span></a>,
45 <a href="timedatectl.html"><span class="citerefentry"><span class="refentrytitle">timedatectl</span>(1)</span></a>,
46 <a href="systemd-timedated.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-timedated.service</span>(8)</span></a>,
47 <a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a>
48 </p></div></div></body></html>