mirror of
https://git.proxmox.com/git/systemd
synced 2025-07-16 08:46:35 +00:00
49 lines
4.0 KiB
HTML
49 lines
4.0 KiB
HTML
<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>
|
|
a.headerlink {
|
|
color: #c60f0f;
|
|
font-size: 0.8em;
|
|
padding: 0 4px 0 4px;
|
|
text-decoration: none;
|
|
visibility: hidden;
|
|
}
|
|
|
|
a.headerlink:hover {
|
|
background-color: #c60f0f;
|
|
color: white;
|
|
}
|
|
|
|
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
|
|
visibility: visible;
|
|
}
|
|
</style><a href="index.html">Index </a>·
|
|
<a href="systemd.directives.html">Directives </a>·
|
|
<a href="../python-systemd/index.html">Python </a>·
|
|
<a href="../libudev/index.html">libudev </a>·
|
|
<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> -> <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
|
|
system-wide timezone of the local system that is used by
|
|
applications for presentation to the user. It should be an
|
|
absolute or relative symbolic link pointing to
|
|
<code class="filename">/usr/share/zoneinfo/</code>, followed by a timezone
|
|
identifier such as "<code class="literal">Europe/Berlin</code>" or
|
|
"<code class="literal">Etc/UTC</code>". The resulting link should lead to the
|
|
corresponding binary
|
|
<a href="http://man7.org/linux/man-pages/man5/tzfile.5.html"><span class="citerefentry"><span class="refentrytitle">tzfile</span>(5)</span></a>
|
|
timezone data for the configured timezone.</p><p>Because the timezone identifier is extracted from the
|
|
symlink target name of <code class="filename">/etc/localtime</code>, this
|
|
file may not be a normal file or hardlink.</p><p>The timezone may be overridden for individual programs by
|
|
using the <code class="varname">$TZ</code> environment variable. See
|
|
<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
|
|
<a href="timedatectl.html"><span class="citerefentry"><span class="refentrytitle">timedatectl</span>(1)</span></a>
|
|
to change the settings of this file from the command line during
|
|
runtime. Use
|
|
<a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a>
|
|
to initialize the time zone on mounted (but not booted) system
|
|
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>
|
|
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
|
|
<a href="http://man7.org/linux/man-pages/man3/tzset.3.html"><span class="citerefentry"><span class="refentrytitle">tzset</span>(3)</span></a>,
|
|
<a href="localtime.html"><span class="citerefentry"><span class="refentrytitle">localtime</span>(3)</span></a>,
|
|
<a href="timedatectl.html"><span class="citerefentry"><span class="refentrytitle">timedatectl</span>(1)</span></a>,
|
|
<a href="systemd-timedated.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-timedated.service</span>(8)</span></a>,
|
|
<a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a>
|
|
</p></div></div></body></html>
|