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