Deutsch   English   Français   Italiano  
<vdkd7t$3cofo$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: John McCue <jmccue@neutron.jmcunx.com>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Does Dimdows Know What Time It Is?
Date: Wed, 2 Oct 2024 21:16:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vdkd7t$3cofo$1@dont-email.me>
References: <vda0ko$1e457$1@dont-email.me> <llrhc7FdfgrU6@mid.individual.net> <vda59q$1eofk$2@dont-email.me>
Reply-To: jmclnx@SPAMisBADgmail.com
Injection-Date: Wed, 02 Oct 2024 23:16:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="15275e7147991058128f91f975e11077";
	logging-data="3564024"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+STHMfZ82JtBCdDlPA6hI+"
User-Agent: tin/2.6.3-20231224 ("Banff") (NetBSD/10.0 (amd64))
Cancel-Lock: sha1:quJuzdZc52lKTD41/RNK3m7GQag=
X-OS-Version: NetBSD 10.0 amd64
Bytes: 2343

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On 28 Sep 2024 23:21:43 GMT, vallor wrote:
> 
>> $ ls -l /etc/localtime
>> lrwxrwxrwx 1 root root 39 Jul 16 07:50 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
> 
> This is a ?system default? timezone, which is not something that
> really makes sense on Linux.

Actually having that link makes sense on Linux and the BSDs.
It is used to default time display for users.
Like times from 'ls -l', 'date' ...

You can set TZ equal to whatever timezone in /usr/share/zoneinfo
you want.
For example:

% setenv TZ America/Denver
% date
Wed Oct  2 15:09:45 MDT 2024
% l x.txt 
-rw-------  1 jmccue  jmccue  116 Sep 22 14:48 x.txt
% setenv TZ America/New_York
% date
Wed Oct  2 17:10:32 EDT 2024
neutron % l x.txt
-rw-------  1 jmccue  jmccue  116 Sep 22 16:48 x.txt

If TZ is not set, the default is from /etc/localtime

Setting TZ is standard on many UN*X systems, though the zone
database may be a bit different.

But, a lot of Desktop Environments (KDE, GNOME) tend to
ignore this setting and force people to use their own
internal date set.  I blame that on Linux people having
no clue on how the TZ database really works.

<snip>

-- 
[t]csh(1) - "An elegant shell, for a more... civilized age."
                        - Paraphrasing Star Wars