Re: Does Dimdows Know What Time It Is?

Liste des GroupesRevenir à col advocacy 
Sujet : Re: Does Dimdows Know What Time It Is?
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.os.linux.advocacy
Date : 29. Sep 2024, 01:21:43
Autres entêtes
Message-ID : <llrhc7FdfgrU6@mid.individual.net>
References : 1
User-Agent : Pan/0.160 (Toresk; 00146837; Linux-6.11.0)
On Sat, 28 Sep 2024 22:40:24 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <vda0ko$1e457$1@dont-email.me>:

Something Unix did that was different from most other OSes was, its
system clock kept time in UTC (or GMT, in pre-UTC days). Linux does the
same.
When you use a command like “date” to see what the current date and time
is, it converts that UTC time to a local time in some specified
timezone. Changing the timezone is as easy as specifying a new value for
the TZ environment variable.
 
Windows, on the other hand, keeps its system clock in local time, in
some specific time zone that is assumed to apply systemwide.
 
This is a particularly dumb idea when you realize how much it
complicates things if your time zone has daylight saving time. We have
seen this sort of thing happen on Windows systems before, where they
might forget to adjust the clock to start/stop daylight saving, or even
adjust it twice so you end up being an hour off in the opposite
direction.
 
This can’t happen on Linux systems, because there is no turning daylight
saving “on” or “off” as such: there is simply a table of local time
offsets (from the “tzdata” files), and the correct offset to apply
depends only on the actual UTC time value, not on the current setting of
any system flag.
 
This also makes it easy to convert between UTC and local times at any
time in the past, for any time zone.

$ echo $TZ

$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 39 Jul 16 07:50 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

--
-v

Date Sujet#  Auteur
29 Sep00:40 * Does Dimdows Know What Time It Is?16Lawrence D'Oliveiro
29 Sep01:21 +* Re: Does Dimdows Know What Time It Is?2vallor
29 Sep01:59 i`- Re: Does Dimdows Know What Time It Is?1Lawrence D'Oliveiro
29 Sep20:59 `* Re: Does Dimdows Know What Time It Is?13DFS
29 Sep22:04  +- Re: Does Dimdows Know What Time It Is?1Stéphane CARPENTIER
30 Sep03:24  +* Re: Does Dimdows Know What Time It Is?2Lawrence D'Oliveiro
30 Sep21:40  i`- Re: Does Dimdows Know What Time It Is?1candycanearter07
30 Sep08:34  +* Re: Does Dimdows Know What Time It Is?5RonB
1 Oct07:19  i`* Re: Does Dimdows Know What Time It Is?4RonB
1 Oct20:30  i +- Re: Does Dimdows Know What Time It Is?1rbowman
1 Oct20:51  i `* Re: Does Dimdows Know What Time It Is?2Farley Flud
1 Oct22:40  i  `- Re: Does Dimdows Know What Time It Is?1DFS
30 Sep12:59  +- Re: Does Dimdows Know What Time It Is?1Chris Ahlstrom
1 Oct14:26  `* Re: Does Dimdows Know What Time It Is?3Joel
1 Oct20:31   `* Re: Does Dimdows Know What Time It Is?2rbowman
2 Oct00:05    `- Re: Does Dimdows Know What Time It Is?1Joel

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal