Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.advocacy > #671595
| From | vallor <vallor@cultnix.org> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Does Dimdows Know What Time It Is? |
| Date | 2024-09-28 23:21 +0000 |
| Message-ID | <llrhc7FdfgrU6@mid.individual.net> (permalink) |
| References | <vda0ko$1e457$1@dont-email.me> |
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
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar
Does Dimdows Know What Time It Is? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-28 22:40 +0000
Re: Does Dimdows Know What Time It Is? vallor <vallor@cultnix.org> - 2024-09-28 23:21 +0000
Re: Does Dimdows Know What Time It Is? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-28 23:59 +0000
Re: Does Dimdows Know What Time It Is? DFS <nospam@dfs.com> - 2024-09-29 14:59 -0400
Re: Does Dimdows Know What Time It Is? Stéphane CARPENTIER <sc@fiat-linux.fr> - 2024-09-29 20:04 +0000
Re: Does Dimdows Know What Time It Is? CrudeSausage <crude@sausa.ge> - 2024-09-29 20:44 -0400
Re: Does Dimdows Know What Time It Is? RonB <ronb02NOSPAM@gmail.com> - 2024-09-30 06:34 +0000
Re: Does Dimdows Know What Time It Is? CrudeSausage <crude@sausa.ge> - 2024-09-30 10:05 -0400
Re: Does Dimdows Know What Time It Is? RonB <ronb02NOSPAM@gmail.com> - 2024-10-01 05:19 +0000
Re: Does Dimdows Know What Time It Is? CrudeSausage <crude@sausa.ge> - 2024-10-01 08:58 -0400
Re: Does Dimdows Know What Time It Is? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-30 01:24 +0000
Re: Does Dimdows Know What Time It Is? candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-09-30 19:40 +0000
Re: Does Dimdows Know What Time It Is? Chris Ahlstrom <OFeem1987@teleworm.us> - 2024-09-30 06:59 -0400
Re: Does Dimdows Know What Time It Is? chrisv <chrisv@nospam.invalid> - 2024-10-01 07:07 -0500
Re: Does Dimdows Know What Time It Is? Joel <joelcrump@gmail.com> - 2024-10-01 08:26 -0400
csiph-web