• ntpsec as server questions

    From gene heskett@21:1/5 to All on Mon Dec 4 01:50:01 2023
    Greetings all;

    in the docs (thanks for hiding them & doing away with manpages) it says: -------
    To make the DHCP server in the Debian package isc-dhcp-server send NTP
    server
    information, add a line like the following at an appropriate place:

    option ntp-servers ntp1.foo.bar, ntp2.foo.bar;
    ----------
    now I assume the foo.bar is to be replaced by something unique but
    probably referencing this system doing the serving. How would this be determined? Also "appropriate place" needs better defined.

    At the other end of the local wires and switches tree on my other
    machines, what is the list of debian.pool.ntp.org replaced with?

    Thank you.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to gene heskett on Mon Dec 4 02:00:01 2023
    On Sun, Dec 03, 2023 at 07:42:42PM -0500, gene heskett wrote:
    in the docs (thanks for hiding them & doing away with manpages) it says: -------
    To make the DHCP server in the Debian package isc-dhcp-server send NTP
    server
    information, add a line like the following at an appropriate place:

    option ntp-servers ntp1.foo.bar, ntp2.foo.bar;
    ----------

    I have never once seen a host use NTP servers which were suggested by a
    DHCP server. I can't speak for others.

    I would simply ignore that section, but if you feel like you want your
    hosts to be told which NTP servers to use via DHCP, then you can try it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to gene heskett on Mon Dec 4 06:10:01 2023
    On Sun, Dec 03, 2023 at 07:42:42PM -0500, gene heskett wrote:
    Greetings all;

    in the docs (thanks for hiding them & doing away with manpages) it says: -------
    To make the DHCP server in the Debian package isc-dhcp-server send NTP
    server
    information, add a line like the following at an appropriate place:

    option ntp-servers ntp1.foo.bar, ntp2.foo.bar;
    ----------
    now I assume the foo.bar is to be replaced by something unique [...]

    The whole thing is supposed to be a resolvable host name for your client,
    i.e. either something your client can look up in the DNS, something in
    its /etc/hosts, possibly even a naked IP address will do. It's quite
    likely the request goes through the resolver (which, BTW, has a man page).

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZW1e6gAKCRAFyCz1etHa Ro92AJ9XUrLMLwD/ewk7WLv5voES5geWRQCfbtwWjJb/YuMgIEaeAoGkN1CGkhs=
    =Fmnq
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Jeffrey Walton on Mon Dec 4 07:30:01 2023
    On Mon, 4 Dec 2023 00:20:45 -0500
    Jeffrey Walton <noloader@gmail.com> wrote:

    I'm not sure that is correct. According to RFC 2132, Section 8.3, the
    NTP time server source option is IP addresses, not hostnames. That
    means ISC DHCP docs need to say it resolves a hostname to an IP, or it
    needs to tell people to use IP addresses in accordance with the RFC.
    See <https://datatracker.ietf.org/doc/html/rfc2132#section-8.3>.

    Well, I don't know about the RFC, but the ISC DHCP server gets along
    find with host names. From my /etc/dhcp/dhcpd.conf:

    option ntp-servers ntp.localdomain, ntp1.localdomain; # issola, aliased; chaffee, aliased.

    I think the server looks the addresses up and transmits the addresses.
    My clients see IP addresses, anyway.


    If you try that [using a hostname in NTP server option] with the ISC's
    KEA DHCP (KEA is ISC's rewrite of the old DHCP server), then the
    server fails to start. You must use an IP address for NTP server
    option with KEA DHCP.

    Well, that's silly. One of the nice things about using host names is
    that you can move the service from one machine to another (as I just
    did) and all you have to do is change the alias in your zone file.

    I'm not going to look to see if a more recent RFC amends that.

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to jeremy ardley on Mon Dec 4 10:00:01 2023
    On 12/3/23 20:06, jeremy ardley wrote:

    On 4/12/23 08:51, jeremy ardley wrote:
    |ntpq -p timedatectl status chronyc sources or if you are hardcore
    sudo tcpdump -i any port 123 |||||


    Sorry, something screwed up the list

    One or more of:

    ntpq -p

    timedatectl status

    chronyc sources

    or if you are hardcore

    sudo tcpdump -i any port 123

    This latter, disclosed that I was serving as a lower accuracy ntp server
    to anybody that came calling, probably serving a hundred or more clients
    in around 4 hours logging. I am surprised that dd-wrt lets port 123 thru
    from the network unhindered.
    I have this printer getting its time info from this machine's ntpsec but
    the chrony in the printer is ignoring /etc/timezone, stuck in PST or 4
    hours behind me when comparing the output of "date". Except for the
    hour, its dead on to the second.

    This printer is running armbian buster, with apt using the debian arm
    repos, which have long been disabled, so I'm stuck editing what it has.
    There are not enough tools to build a tarball either.

    That messes with the estimates of time the print will finish. Chrony in
    the printer says its a full blown ISC client, but its ignoring the
    contents of /etc/timezone. Or something else is overriding /etc/timezone.

    Does anyone know of an override to that I might check?

    Thanks all

    .

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to tomas@tuxteam.de on Mon Dec 4 11:00:01 2023
    On 12/4/23 00:09, tomas@tuxteam.de wrote:
    On Sun, Dec 03, 2023 at 07:42:42PM -0500, gene heskett wrote:
    Greetings all;

    in the docs (thanks for hiding them & doing away with manpages) it says:
    -------
    To make the DHCP server in the Debian package isc-dhcp-server send NTP
    server
    information, add a line like the following at an appropriate place:

    option ntp-servers ntp1.foo.bar, ntp2.foo.bar;
    ----------
    now I assume the foo.bar is to be replaced by something unique [...]

    The whole thing is supposed to be a resolvable host name for your client, i.e. either something your client can look up in the DNS, something in
    its /etc/hosts, possibly even a naked IP address will do. It's quite
    likely the request goes through the resolver (which, BTW, has a man page).

    The naked ipv4 address works, I've not added all machines to the
    printers hosts file, yet...

    Cheers

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to jeremy ardley on Mon Dec 4 11:10:02 2023
    jeremy ardley <jeremy.ardley@gmail.com> writes:

    timedatectl status

    I think you mean timedatectl timesync-status since that lists the NTP
    server among other things.

    Interestingly, looks like my Debian router uses my ISP's NTP server
    which it likely knows through DHCP whereas my little Ubuntu-running
    Raspberry Pi uses ntp.ubuntu.com.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to gene heskett on Mon Dec 4 12:00:02 2023
    On 12/4/23 03:58, gene heskett wrote:
    On 12/3/23 20:06, jeremy ardley wrote:

    On 4/12/23 08:51, jeremy ardley wrote:
    |ntpq -p timedatectl status chronyc sources or if you are hardcore
    sudo tcpdump -i any port 123 |||||


    Sorry, something screwed up the list

    One or more of:

    ntpq -p

    timedatectl status

    chronyc sources

    or if you are hardcore

    sudo tcpdump -i any port 123

    This latter, disclosed that I was serving as a lower accuracy ntp
    server to anybody that came calling, probably serving a hundred or
    more clients in around 4 hours logging. I am surprised that dd-wrt
    lets port 123 thru from the network unhindered.
    I have this printer getting its time info from this machine's ntpsec
    but the chrony in the printer is ignoring /etc/timezone, stuck in PST
    or 4 hours behind me when comparing the output of "date".  Except for
    the hour, its dead on to the second.

    This printer is running armbian buster, with apt using the debian arm
    repos, which have long been disabled, so I'm stuck editing what it
    has. There are not enough tools to build a tarball either.

    That messes with the estimates of time the print will finish. Chrony
    in the printer says its a full blown ISC client, but its ignoring the contents of /etc/timezone. Or something else is overriding /etc/timezone.

    Does anyone know of an override to that I might check?

    Thanks all



    What does /etc/localtime say?

    For example on my raspberrypi 4

    ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 27 Nov  1 18:21 /etc/localtime -> /usr/share/zoneinfo/EST5EDT

    cat /etc/timezone
    America/New_York

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Pocket on Mon Dec 4 12:40:01 2023
    On 12/4/23 05:55, Pocket wrote:
    ntpq -p
    I don't have that on the printer, it is running chrony.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to gene heskett on Mon Dec 4 12:50:01 2023
    On Mon, Dec 04, 2023 at 06:29:24AM -0500, gene heskett wrote:
    On 12/4/23 05:03, Anssi Saari wrote:
    timedatectl timesync-status
    root@mkspi:/etc# timedatectl timesync-status
    Failed to query server: Connection timed out

    This printer is running chrony, which removes timesyncd.

    ntpsec on this machine is working, even the seconds match and the log shows the request being serviced:

    06:19:05.847872 eno1 In IP mkspi.coyote.den.48265 > coyote.coyote.den.ntp: NTPv4, Client, length 48
    06:19:05.848004 eno1 Out IP coyote.coyote.den.ntp > mkspi.coyote.den.48265: NTPv4, Server, length 48

    but the printer is on PST where I'm on EST, 4 hours difference and the printer is ignoring /etc/timezone. Why? What can override it?

    Please, don't mix up local time (a device to show to you, done somewhere
    in libc) with kernel time (as traded between NTP and friends). That way
    lies madness. Kernel time is *always* number of seconds since some Epoch (typically 1970-01-01). No EST or whatever nonsense in there. And this
    is the terms in which NTPs trade (OK, they have fractions of sec in there,
    but that's it). Nothing else.

    Unix boxes aren't DOS, haven't ever been. Actually you should know that.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZW27EQAKCRAFyCz1etHa RuwlAJ4wNXpU/tSOYWcZzQx6HccIzJGJFQCcDHsiPatlWY5pld56aUJeb/1ZOhQ=
    =ih68
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Anssi Saari on Mon Dec 4 12:30:01 2023
    On 12/4/23 05:03, Anssi Saari wrote:
    timedatectl timesync-status
    root@mkspi:/etc# timedatectl timesync-status
    Failed to query server: Connection timed out

    This printer is running chrony, which removes timesyncd.

    ntpsec on this machine is working, even the seconds match and the log
    shows the request being serviced:

    06:19:05.847872 eno1 In IP mkspi.coyote.den.48265 >
    coyote.coyote.den.ntp: NTPv4, Client, length 48
    06:19:05.848004 eno1 Out IP coyote.coyote.den.ntp >
    mkspi.coyote.den.48265: NTPv4, Server, length 48

    but the printer is on PST where I'm on EST, 4 hours difference and the
    printer is ignoring /etc/timezone. Why? What can override it?

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to gene heskett on Mon Dec 4 13:20:01 2023
    On Mon, Dec 04, 2023 at 06:32:38AM -0500, gene heskett wrote:
    On 12/4/23 05:55, Pocket wrote:
    ntpq -p
    I don't have that on the printer, it is running chrony.

    A quick Google search for "chrony equivalent of ntpq" gives me <https://karloluiten.nl/chrony-status-command-ntpq-p-alternative/>
    which says to use "chronyc sources" or "chronyc tracking".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Mon Dec 4 13:20:01 2023
    On Mon, Dec 04, 2023 at 05:55:25AM -0500, Pocket wrote:
    On 12/4/23 03:58, gene heskett wrote:
    I have this printer getting its time info from this machine's ntpsec but the chrony in the printer is ignoring /etc/timezone, stuck in PST or 4 hours behind me when comparing the output of "date".

    What does /etc/localtime say?

    For example on my raspberrypi 4

    ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 27 Nov 1 18:21 /etc/localtime -> /usr/share/zoneinfo/EST5EDT

    cat /etc/timezone
    America/New_York

    According to <https://wiki.debian.org/TimeZoneChanges> the correct
    way to set the time zone in Debian is to run "dpkg-reconfigure tzdata"
    which will update both /etc/timezone *and* /etc/localtime. Of course,
    since Gene's printer isn't running Debian, we can't accurately tell
    him what commands to run.

    But at the bare minimum, Gene should check:

    ls -ld /etc/*time*

    If it turns out his printer has an /etc/localtime symlink pointing
    to the wrong time zone, then re-pointing it should help.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Mon Dec 4 14:00:01 2023
    On 12/4/23 07:17, Greg Wooledge wrote:
    On Mon, Dec 04, 2023 at 05:55:25AM -0500, Pocket wrote:
    On 12/4/23 03:58, gene heskett wrote:
    I have this printer getting its time info from this machine's ntpsec but >>> the chrony in the printer is ignoring /etc/timezone, stuck in PST or 4
    hours behind me when comparing the output of "date".
    What does /etc/localtime say?

    For example on my raspberrypi 4

    ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 27 Nov  1 18:21 /etc/localtime ->
    /usr/share/zoneinfo/EST5EDT

    cat /etc/timezone
    America/New_York
    According to <https://wiki.debian.org/TimeZoneChanges> the correct
    way to set the time zone in Debian is to run "dpkg-reconfigure tzdata"
    which will update both /etc/timezone *and* /etc/localtime. Of course,
    since Gene's printer isn't running Debian, we can't accurately tell
    him what commands to run.

    But at the bare minimum, Gene should check:

    ls -ld /etc/*time*

    If it turns out his printer has an /etc/localtime symlink pointing
    to the wrong time zone, then re-pointing it should help.

    Which is why I posted the above.

    Libc uses /etc/localtime so the printer is likely to use that

    By doing ls -hal /etc/localtime will point that out

    My research has shown that /etc/timezone is a debianism and was slated to be depreciated.


    dpkg-reconfigure tzdata will not allow me to set the time zone to EST5EDT

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Mon Dec 4 17:00:01 2023
    On 12/4/23 07:10, Greg Wooledge wrote:
    On Mon, Dec 04, 2023 at 06:32:38AM -0500, gene heskett wrote:
    On 12/4/23 05:55, Pocket wrote:
    ntpq -p
    I don't have that on the printer, it is running chrony.

    A quick Google search for "chrony equivalent of ntpq" gives me <https://karloluiten.nl/chrony-status-command-ntpq-p-alternative/>
    which says to use "chronyc sources" or "chronyc tracking".


    Thank you Greg, both of those initially return a 506 no daemon. so: root@mkspi:/etc# chronyc sources
    506 Cannot talk to daemon
    root@mkspi:/etc# chronyc tracking
    506 Cannot talk to daemon
    root@mkspi:/etc# /etc/init.d/chrony status
    ● chrony.service - chrony, an NTP client/server
    Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor
    preset: enabled)
    Active: inactive (dead) since Mon 2023-12-04 03:21:18 PST; 4h 6min ago
    Docs: man:chronyd(8)
    man:chronyc(1)
    man:chrony.conf(5)
    Process: 30074 ExecStart=/usr/sbin/chronyd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
    Process: 30078 ExecStartPost=/usr/lib/chrony/chrony-helper
    update-daemon (code=exited, status=0/SUCCESS)
    Main PID: 30076 (code=exited, status=0/SUCCESS)

    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
    root@mkspi:/etc# /etc/init.d/chrony restart
    [ ok ] Restarting chrony (via systemctl): chrony.service.
    root@mkspi:/etc# /etc/init.d/chrony status
    ● chrony.service - chrony, an NTP client/server
    Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor
    preset: enabled)
    Active: active (running) since Mon 2023-12-04 07:28:18 PST; 3s ago
    Docs: man:chronyd(8)
    man:chronyc(1)
    man:chrony.conf(5)
    Process: 6913 ExecStart=/usr/sbin/chronyd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
    Process: 6917 ExecStartPost=/usr/lib/chrony/chrony-helper
    update-daemon (code=exited, status=0/SUCCESS)
    Main PID: 6915 (chronyd)
    Tasks: 2 (limit: 998)
    Memory: 692.0K
    CGroup: /system.slice/chrony.service
    ├─6915 /usr/sbin/chronyd -F -1
    └─6916 /usr/sbin/chronyd -F -1

    Dec 04 07:28:18 mkspi systemd[1]: Starting chrony, an NTP client/server...
    Dec 04 07:28:18 mkspi chronyd[6915]: chronyd version 3.4 starting
    (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +…6 -DEBUG)
    Dec 04 07:28:18 mkspi chronyd[6915]: Frequency -5.789 +/- 0.498 ppm read
    from /var/lib/chrony/chrony.drift
    Dec 04 07:28:18 mkspi chronyd[6915]: Loaded seccomp filter
    Dec 04 07:28:18 mkspi systemd[1]: Started chrony, an NTP client/server.
    Hint: Some lines were ellipsized, use -l to show in full.
    root@mkspi:/etc# date
    Mon 04 Dec 2023 07:28:49 AM PST
    root@mkspi:/etc# chronyc sources
    210 Number of sources = 1
    MS Name/IP address Stratum Poll Reach LastRx Last sample

    =============================================================================== ^* coyote.coyote.den 2 6 17 42 -22us[ -25us] +/-
    41ms
    root@mkspi:/etc# chronyc tracking
    Reference ID : C0A84703 (coyote.coyote.den)
    Stratum : 3
    Ref time (UTC) : Mon Dec 04 15:28:24 2023
    System time : 0.000000003 seconds fast of NTP time
    Last offset : -0.000003382 seconds
    RMS offset : 0.000003382 seconds
    Frequency : 5.789 ppm slow
    Residual freq : +4.376 ppm
    Skew : 0.498 ppm
    Root delay : 0.026627216 seconds
    Root dispersion : 0.027671944 seconds
    Update interval : 2.0 seconds
    Leap status : Normal
    root@mkspi:/etc#

    Thats says this machine has it hdware clock on utc.
    but date is still on PTC
    from mkspi, the printer:
    root@mkspi:/etc# date
    Mon 04 Dec 2023 07:34:59 AM PST
    its 10:35 here, still 3 hours off.

    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC
    chrony has been restarted several times on mkspi, the printer
    no errors logged in the tcpdump output.

    WTH? Where is that false 12 hour offset coming from?

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to gene heskett on Mon Dec 4 17:40:01 2023
    On Dec 04, 2023, gene heskett wrote:
    [...]
    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC
    [...]

    WTH? Where is that false 12 hour offset coming from?

    Coyote seems to use the standard output of 'date' (in 24-hour clock
    format).

    mkspi /appears/ to be using an approximation of "-R" ("--rfc-email",
    as set in RFC5322), though it's missing the comma between "Mon" and "04
    Dec", and is set in 12-hour mode.

    It's been ages since I've dug into it, but I _BELIEVE_ the LC_TIME
    environment variable has an effect here. (Or had, at some point in the
    past).

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmVt/wYACgkQbWVw5Uzn KGBOyA/+L1KvK4IEU6vgKpVfJ7PfOYa+qDVsoatBQxiRAWfP4OJYdZlWSzeNIJDM 0xHXU/TgkqA6rJ6BcjZb2lvj8uLR4eXxuuIxXH5qud8G4Mko/fp7v4ZzbVUAjZbJ ryb4Gc+geNU0Sp13EYjLqQfAhgBYuBycpNzLeymTy2XX76rpuq9MkBbN7+JtlNmh fK8ZgRpnc8vBslZjH1i3dxAnICplRNLJ2khvZ+ksfmU7AUEkH23nclsndazp6zR1 3uzSo8dJeP9NrOmCM09511eXVWGUlsL+840MMyOUjyvXb28Ed1RILOmq3ieHSeQJ 6HxShgku4x7eOWraZeWiBmVlTvCEebMD1D+e2t1SPuQwyFZtl02DWJlqi+D3GG0g +clHBqSeMY0nGQZv7jQVAyeSZP537jA/w7A+bp1OC5iql8mOoX+j5cuFhl06ur3x R42RDCKlBd++AnT0NeKTIBrx+eCajQBF1GmA9BlZ+pizDwsh2DzGnSXz4VU59dca kR/03x+M9M1Jy6ML7ByB3swtPdTx4gFZuGrzBfNn/rW4wdKiCE4AuAx8EJounrA2 hhWXQSSg2Vc/7M0Txv8Rz8hxEa7SCf2tGtw4jxPiK4a/GlvUXGDu/PmS93ey/RfN jjLy8t/dt+rmeigk74yVouJ0uNm9L1Buxwb1P6tr552bBXJUPJs=
    =DVuJ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Use
  • From Greg Wooledge@21:1/5 to gene heskett on Mon Dec 4 17:40:01 2023
    On Mon, Dec 04, 2023 at 10:55:47AM -0500, gene heskett wrote:
    root@mkspi:/etc# chronyc sources
    210 Number of sources = 1
    MS Name/IP address Stratum Poll Reach LastRx Last sample

    ===============================================================================
    ^* coyote.coyote.den 2 6 17 42 -22us[ -25us] +/-
    41ms

    I've never used chrony, but that looks good at first glance.

    root@mkspi:/etc# date
    Mon 04 Dec 2023 07:34:59 AM PST
    its 10:35 here, still 3 hours off.

    The time is *correct*, it's just being reported for a different time
    zone than you want.

    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC

    Again, both correct.

    WTH? Where is that false 12 hour offset coming from?

    There is no 12 hour offset. One is being reported in 24-hour time, and
    the other in 12-hour time (it says "PM"), because of different locale definitions.

    All you need to do is change your system's default time zone, which on
    Debian involves changing the *file* /etc/timezone and the *symlink* /etc/localtime. Both are required, because some programs use one and
    some use the other.

    We've said this in like 3 other emails so far.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Hasler@21:1/5 to Gene on Mon Dec 4 17:40:01 2023
    Gene writes:
    Thats says this machine has it hdware clock on utc.

    No. That says that the system clock (not the hardware clock) is
    synchronized to NTP time. The system clock keeps UNIX time: seconds
    since the epoch. It is converted to either UTC or local time as
    approporiate for display. It says nothing about the hardware clock.

    Try

    hwclock -l

    to find out what timezone the hardwareclock is set to.

    If the box is running systemd try

    timedatectl


    --
    John Hasler
    john@sugarbit.com
    Elmwood, WI USA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tom Furie@21:1/5 to gene heskett on Mon Dec 4 17:50:02 2023
    gene heskett <gheskett@shentel.net> writes:

    Mon Dec 4 15:47:44 UTC 2023
    Mon 04 Dec 2023 03:47:16 PM UTC
    WTH? Where is that false 12 hour offset coming from?

    There's no offset. 15:00 UTC *is* 03:00 PM UTC
    ^^

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Max Nikulin on Mon Dec 4 19:50:01 2023
    On Tue, Dec 05, 2023 at 12:01:35AM +0700, Max Nikulin wrote:
    On 04/12/2023 23:34, Greg Wooledge wrote:
    WTH? Where is that false 12 hour offset coming from?
    There is no 12 hour offset. One is being reported in 24-hour time, and
    the other in 12-hour time (it says "PM"), because of different locale definitions.

    dpkg-reconfigure locales

    Or its equivalent for modified armbian. See /etc/default/locale and https://www.debian.org/doc/manuals/debian-reference/ch09.en.html#_customized_display_of_time_and_date

    That chapter talks about customizing timestamps in "ls -l" output.

    "9.3.4. Customized display of time and date" and "9.5.5. System and hardware time".

    Chapter 9.5.5 talks about setting the hardware clock, and recommends
    installing an NTP package.

    Neither of these chapters tells you how to make the "date" command give
    you the output format you want. At least not directly. A clever user
    might extrapolate from the "ls -l" and "alias" examples that they could
    create an alias for "date" which would pass a customized + argument
    for a customized output format. And that's certainly possible, but isn't something I'd choose to do. Most importantly because it would only affect
    the "date" command typed in an interactive shell; it wouldn't affect
    date(1) run by scripts, or anything else which uses the %c format
    operator in strftime(3).

    If you want to get rid of the 12-hour time format by *default* (%c),
    then neither of these chapters actually helps you. What you want to do
    is override the LC_TIME variable.

    unicorn:~$ (unset LC_TIME; date)
    Mon Dec 4 01:32:29 PM EST 2023
    unicorn:~$ LC_TIME=C date
    Mon Dec 4 13:32:33 EST 2023

    On my system (Debian 12), the default LC_TIME format in the en_US.utf8
    locale is that 12-hour thing. I have "export LC_TIME=C" in my shell's
    dot files, so that I get the traditional 24-hour output instead.

    This affects all uses of strftime's %c, including bash's builtin printf:

    unicorn:~$ printf '%(%c)T\n'
    Mon Dec 4 13:34:35 2023
    unicorn:~$ LC_TIME=en_US.utf8 printf '%(%c)T\n'
    Mon 04 Dec 2023 01:34:42 PM EST

    Sadly, you're restricted to the choices offered by your installed locales.
    If you can't find an installed locale which has an acceptable LC_TIME
    format, then you can try to roll your own. I went down that road once.
    It didn't really work out for me. Too many finicky details that simply
    don't work out in reality.

    I hope, no applications rely on specific locale while parsing time or numbers.

    I would not care to wager on that.

    echo "$TZ"

    This is almost always unset. Normal users don't tend to set this. It's
    just not part of the public consciousness, for whatever reason.

    The *vastly* overwhelming majority of users rely on their system's default
    time zone instead.

    https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
    but ignore most of its content, use zone identifiers like America/New_York

    Or whatever is in your system's /usr/share/zoneinfo/ or wherever your
    system's /etc/localtime symlink points.

    WE ARE STILL WAITING TO SEE WHERE GENE'S /etc/localtime POINTS.
    Hint, hint.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Mon Dec 4 20:20:02 2023
    On 12/4/23 07:10, Greg Wooledge wrote:
    On Mon, Dec 04, 2023 at 06:32:38AM -0500, gene heskett wrote:
    On 12/4/23 05:55, Pocket wrote:
    ntpq -p
    I don't have that on the printer, it is running chrony.

    A quick Google search for "chrony equivalent of ntpq" gives me <https://karloluiten.nl/chrony-status-command-ntpq-p-alternative/>
    which says to use "chronyc sources" or "chronyc tracking".


    Another snippet of date, it would appear that the clock is set to utc correctly. From /proc/driver/utc:
    rtc_time : 16:31:50
    rtc_date : 2023-12-04
    alrm_time : 00:00:00
    alrm_date : 1999-12-16
    alarm_IRQ : no
    alrm_pending : no
    update IRQ enabled : no
    periodic IRQ enabled : no
    periodic IRQ frequency : 1
    max user IRQ frequency : 64
    24hr : yes
    Which would be nominally correct for utc
    That leave the localtime error pretty much up to the date command, or is
    there something else screwing with this? Where ALL in this chain does /etc/timezone get used, which is currently set to:
    America/New_York

    Thank you.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Mon Dec 4 21:30:01 2023
    On 12/4/23 07:17, Greg Wooledge wrote:
    ls -hal /etc/localtime

    Aha! You found it, but how do I change it?
    root@mkspi:/etc# cat timezone
    America/New_York
    root@mkspi:/etc# ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 39 Jul 25 2022 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
    use mc to edit the /etc/localtime link? Surely there is better way...
    chasing that link down its a link to ../posixrules, and this dog is
    chasing its own tail, wtf? Something is AFU but what? The string as the
    last few bytes of posixrules looks correct at EST5EDT, and I've got a
    headache. there are links to links to links in that midden heap.

    Whoever said there lies insanity is correct/

    Thanks Greg

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to gene heskett on Mon Dec 4 21:40:01 2023
    On Mon, Dec 04, 2023 at 03:19:33PM -0500, gene heskett wrote:
    On 12/4/23 07:17, Greg Wooledge wrote:
    ls -hal /etc/localtime

    Aha! You found it, but how do I change it?
    root@mkspi:/etc# cat timezone
    America/New_York
    root@mkspi:/etc# ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 39 Jul 25 2022 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

    It's just a symbolic link. It looks like you have the "modern" style
    of zone names, so:

    ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

    use mc to edit the /etc/localtime link? Surely there is better way...

    I don't know how mc works. I've never used it. If that can change the
    target of a symlink, similar to running "ln -sf", then you may use it.

    The string as the last few
    bytes of posixrules looks correct at EST5EDT, and I've got a headache.
    there are links to links to links in that midden heap.

    I classify time zone names into three historic eras. In the oldest era,
    you have zone names like EST5EDT which are composed of three pieces.
    The first piece, EST, is the zone's name when the clock is "normal" (not daylight saving or summer time). The second piece, 5, is the number
    of hours behind GMT the clock is (normally). The third piece, EDT, is
    the zone's name when daylight saving time is in effect.

    In the second era, zone names look like "US/Eastern". The piece on the
    right hand side is a component of the piece on the left. I'm uncertain
    whether the pieces on the left are always country codes, or if there's
    some other arrangement.

    In the modern era, zone names look like "America/Chicago". The piece on
    the left is a continent (or other large geographic region, e.g. "Pacific"),
    and the piece on the right is a major city, preferably *the* major city,
    which exemplifies the specific time zone in question.

    For you and me, the current era time zone name is "America/New_York".
    This is how the Debian installer sets the localtime symlink, and is
    what we should be using if we have to set it ourselves.

    I personally find "US/Eastern" the easiest to grasp, and I'm sad that
    this pattern fell out of fashion, for whatever reason. Whenever I tell
    people on the Internet (who may not be Linux users) what time zone I'm
    in, I always go with "US/Eastern". It's just so *clear*.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Mon Dec 4 22:30:01 2023
    On 12/4/23 11:34, Greg Wooledge wrote:
    On Mon, Dec 04, 2023 at 10:55:47AM -0500, gene heskett wrote:
    root@mkspi:/etc# chronyc sources
    210 Number of sources = 1
    MS Name/IP address Stratum Poll Reach LastRx Last sample

    ===============================================================================
    ^* coyote.coyote.den 2 6 17 42 -22us[ -25us] +/-
    41ms

    I've never used chrony, but that looks good at first glance.

    root@mkspi:/etc# date
    Mon 04 Dec 2023 07:34:59 AM PST
    its 10:35 here, still 3 hours off.

    The time is *correct*, it's just being reported for a different time
    zone than you want.

    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC

    Again, both correct.

    WTH? Where is that false 12 hour offset coming from?

    There is no 12 hour offset. One is being reported in 24-hour time, and
    the other in 12-hour time (it says "PM"), because of different locale definitions.

    All you need to do is change your system's default time zone, which on
    Debian involves changing the *file* /etc/timezone and the *symlink* /etc/localtime. Both are required, because some programs use one and
    some use the other.

    We've said this in like 3 other emails so far.

    True, but I don't recall /etc/localtime until today. I thank you again.

    .

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Dan Purgert on Mon Dec 4 22:30:01 2023
    On 12/4/23 11:31, Dan Purgert wrote:
    On Dec 04, 2023, gene heskett wrote:
    [...]
    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC
    [...]

    WTH? Where is that false 12 hour offset coming from?

    Coyote seems to use the standard output of 'date' (in 24-hour clock
    format).

    mkspi /appears/ to be using an approximation of "-R" ("--rfc-email",
    as set in RFC5322), though it's missing the comma between "Mon" and "04
    Dec", and is set in 12-hour mode.

    It's been ages since I've dug into it, but I _BELIEVE_ the LC_TIME environment variable has an effect here. (Or had, at some point in the
    past).
    It might well be, Dan but no man page, Set for "C" in the env output.
    I redirected the /etc/localtime link to EST5EDT and fixed it, the thing
    thought it was in the 3rd worst hell hole in the US, LA, CA.


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Mon Dec 4 22:40:01 2023
    On 12/4/23 14:17, Greg Wooledge wrote:
    On Mon, Dec 04, 2023 at 02:11:51PM -0500, gene heskett wrote:
    That leave the localtime error pretty much up to the date command, or is
    there something else screwing with this? Where ALL in this chain does
    /etc/timezone get used, which is currently set to:
    America/New_York

    ls -ld /etc/*time*

    Please.

    .
    as reported, its now fixed.
    root@mkspi:/usr/share/zoneinfo# ls -ld /etc/*time*
    lrwxrwxrwx 1 root root 27 Dec 4 15:22 /etc/localtime -> /usr/share/zoneinfo/EST5EDT
    -rw-r--r-- 1 root root 17 Dec 4 11:44 /etc/timezone

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to John Hasler on Mon Dec 4 22:40:01 2023
    On 12/4/23 11:39, John Hasler wrote:
    Gene writes:
    Thats says this machine has it hdware clock on utc.

    No. That says that the system clock (not the hardware clock) is
    synchronized to NTP time. The system clock keeps UNIX time: seconds
    since the epoch. It is converted to either UTC or local time as
    approporiate for display. It says nothing about the hardware clock.

    Try

    hwclock -l

    to find out what timezone the hardwareclock is set to.

    If the box is running systemd try

    timedatectl

    Its ( the printer ) is still buster, so that conversion is incomplete.
    Thanks John.



    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Greg Wooledge on Mon Dec 4 22:50:01 2023
    On Mon 04 Dec 2023 at 15:36:32 (-0500), Greg Wooledge wrote:
    I classify time zone names into three historic eras. In the oldest era,
    you have zone names like EST5EDT which are composed of three pieces.
    The first piece, EST, is the zone's name when the clock is "normal" (not daylight saving or summer time). The second piece, 5, is the number
    of hours behind GMT the clock is (normally). The third piece, EDT, is
    the zone's name when daylight saving time is in effect.

    In the second era, zone names look like "US/Eastern". The piece on the
    right hand side is a component of the piece on the left. I'm uncertain whether the pieces on the left are always country codes, or if there's
    some other arrangement.

    In the modern era, zone names look like "America/Chicago". The piece on
    the left is a continent (or other large geographic region, e.g. "Pacific"), and the piece on the right is a major city, preferably *the* major city, which exemplifies the specific time zone in question.

    For you and me, the current era time zone name is "America/New_York".
    This is how the Debian installer sets the localtime symlink, and is
    what we should be using if we have to set it ourselves.

    I personally find "US/Eastern" the easiest to grasp, and I'm sad that
    this pattern fell out of fashion, for whatever reason. Whenever I tell people on the Internet (who may not be Linux users) what time zone I'm
    in, I always go with "US/Eastern". It's just so *clear*.

    Because they don't work historically; for example, say you live in
    Wayne Co, KY:

    /usr/share/zoneinfo$ for j in America/Kentucky/*; do TZ="$j" date -d '@907654321'; done
    Tue Oct 6 02:12:01 EDT 1998
    Tue Oct 6 01:12:01 CDT 1998
    /usr/share/zoneinfo$ for j in America/Kentucky/*; do TZ="$j" date -d '@987654321'; done
    Thu Apr 19 00:25:21 EDT 2001
    Thu Apr 19 00:25:21 EDT 2001
    /usr/share/zoneinfo$

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to gene heskett on Mon Dec 4 23:20:01 2023
    On 12/4/23 15:28, gene heskett wrote:
    On 12/4/23 07:17, Greg Wooledge wrote:

    ls -hal /etc/localtime
    lrwxrwxrwx 1 root root 27 Nov  1 18:21 /etc/localtime ->
    /usr/share/zoneinfo/EST5EDT

    And using mc to edit that link fixed it, I am now getting the correct
    time from date, thank you a lot.

    But maybe a bug against tzselect s/b filed, IMNSHO it should have
    fixed that. It did not.

    Cheers, Gene Heskett.


    For gene..................................................................

    #!/usr/bin/dash #----------------------------------------------------------------------------- #    Title: timezone.sh
    #    Date: 2023-12-04
    #    Version: 1.0
    #    Author: pocket@columbus.rr.com #----------------------------------------------------------------------------- set -o errexit    # exit if error...insurance ;)
    set -o nounset    # exit if variable not initialized #----------------------------------------------------------------------------- zone=EST5EDT
    zoneinfo=/usr/share/zoneinfo
    localtime=/etc/localtime
    timezone=/etc/timezone
    profile=/etc/profile.d
    if [ -e "$zoneinfo"/"$zone" ];then
        ln -sf "$zoneinfo"/"$zone" "$localtime"
    else
        printf "%s\n" "Invalid zone: $zoneinfo/$zone"
        exit 1
    fi
    printf "%s\n" "$zone" > "$timezone"
    printf "%s\n" "TZ=$zone;export TZ" > "$profile"/timezone.sh
    chmod +x "$profile"/timezone.sh #-----------------------------------------------------------------------------

    chmod +x timezone.sh

    sudo ./timezone.sh


    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to gene heskett on Tue Dec 5 04:00:02 2023
    On Mon 04 Dec 2023 at 16:24:11 (-0500), gene heskett wrote:
    On 12/4/23 11:31, Dan Purgert wrote:
    On Dec 04, 2023, gene heskett wrote:
    [...]
    So here on coyote: date -u:
    Mon Dec 4 15:47:44 UTC 2023
    but on mkspi: date -u:
    Mon 04 Dec 2023 03:47:16 PM UTC
    [...]

    WTH? Where is that false 12 hour offset coming from?

    Coyote seems to use the standard output of 'date' (in 24-hour clock format).

    mkspi /appears/ to be using an approximation of "-R" ("--rfc-email",
    as set in RFC5322), though it's missing the comma between "Mon" and "04 Dec", and is set in 12-hour mode.

    It's been ages since I've dug into it, but I _BELIEVE_ the LC_TIME environment variable has an effect here. (Or had, at some point in the past).
    It might well be, Dan but no man page,

    They're all documented together in man locale, with examples:

    $ man locale | grep -A25 EXAMPLES
    EXAMPLES
    $ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    $ locale date_fmt
    %a %b %e %H:%M:%S %Z %Y

    $ locale -k date_fmt
    date_fmt="%a %b %e %H:%M:%S %Z %Y"

    $ locale -ck date_fmt
    LC_TIME
    date_fmt="%a %b %e %H:%M:%S %Z %Y"
    $

    Set for "C" in the env output.
    I redirected the /etc/localtime link to EST5EDT and fixed it, the
    thing thought it was in the 3rd worst hell hole in the US, LA, CA.

    Please—no.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Max Nikulin on Tue Dec 5 18:10:01 2023
    On 12/5/23 11:37, Max Nikulin wrote:

    On 05/12/2023 05:14, Pocket wrote:
    For
    gene..................................................................
    [...]
    zone=EST5EDT
    zoneinfo=/usr/share/zoneinfo
    localtime=/etc/localtime
    timezone=/etc/timezone
    profile=/etc/profile.d
    if [ -e "$zoneinfo"/"$zone" ];then
         ln -sf "$zoneinfo"/"$zone" "$localtime"
    else
         printf "%s\n" "Invalid zone: $zoneinfo/$zone"
         exit 1
    fi
    printf "%s\n" "$zone" > "$timezone"
    printf "%s\n" "TZ=$zone;export TZ" > "$profile"/timezone.sh

    To set /etc/localtime and /etc/timezone I would recommend the command
    that has been repeated several times in this thread:

         dpkg-reconfigure tzdata


    That does not work. Cannot set EST5EDT.  you have to do that manually.

    You also can not select any of the POSIX time zones which indecently
    EST5EDT is one of those


    And I would recommend against setting the TZ environment variable
    unless it is really necessary. If somebody needs it then it is better
    to do it in /etc/environment.d as well. KDE has its own GUI to set user-specific timezone, but I am unsure if selected value will be
    applied in the case of console or ssh login.


    I don't use KDE, I am using LXDE and systems without desktops.

    Comment that part out of the shell script.


    I script all my setups, so I can apply them to all the systems I have.

    For example:

    openssh-server.sh

    bind.sh

    nginx.sh

    nfs-client.sh

    nfs-server.sh

    The scripts install the debian packages required and then setup the configuration.



    I am surprised that POSIX EST5EDT timezone has irregularities at least
    as it is implemented in GNU libc. I believed that it specifies just
    standard and summer time.

    LANG=C.UTF-8 TZ=EST5EDT date -d 'TZ="Z" 1940-01-01 00:00'
    Sun Dec 31 19:00:00 EST 1939

    LANG=C.UTF-8 TZ=EST5EDT date -d 'TZ="Z" 1943-01-01 00:00'
    Thu Dec 31 20:00:00 EWT 1942

    However since these rules are specific to US, I would prefer IANA
    identifiers like America/New_York.


    Which is why I use it.

    /usr/share/zoneinfo/posix/EST5EDT is a symlilnk to
    /usr/share/zoneinfo/EST5EDT



    https://naggum.no/lugm-time.html
    Erik Naggum. A Long, Painful History of Time. 1999
    8.2 Timezone Representation

    David Olsen of Digital Equipment Corporation has laid down a tremendous
    amount of work in collecting the timezones of the world and their
    daylight saving time boundaries. Contrary to the Unix System V approach
    from New Jersey (insert appropriate booing for best effect), which
    codifies a daylight saving time regime only for the current year, and
    apply it to all years, David Olsen's approach is to maintain tables of
    all the timezone changes.



    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to gene heskett on Tue Dec 5 18:30:01 2023
    On 12/5/23 12:21, gene heskett wrote:
    On 12/5/23 11:38, Max Nikulin wrote:

    On 05/12/2023 05:14, Pocket wrote:
    For
    gene..................................................................
    [...]
    zone=EST5EDT
    zoneinfo=/usr/share/zoneinfo
    localtime=/etc/localtime
    timezone=/etc/timezone
    profile=/etc/profile.d
    if [ -e "$zoneinfo"/"$zone" ];then
         ln -sf "$zoneinfo"/"$zone" "$localtime"
    else
         printf "%s\n" "Invalid zone: $zoneinfo/$zone"
         exit 1
    fi
    printf "%s\n" "$zone" > "$timezone"
    printf "%s\n" "TZ=$zone;export TZ" > "$profile"/timezone.sh

    To set /etc/localtime and /etc/timezone I would recommend the command
    that has been repeated several times in this thread:

          dpkg-reconfigure tzdata

    That was not tried.


    And won't work if you want to use a POSIX time zone


    And I would recommend against setting the TZ environment variable
    unless it is really necessary. If somebody needs it then it is better
    to do it in /etc/environment.d as well. KDE has its own GUI to set
    user-specific timezone, but I am unsure if selected value will be
    applied in the case of console or ssh login.

    I am surprised that POSIX EST5EDT timezone has irregularities at
    least as it is implemented in GNU libc. I believed that it specifies
    just standard and summer time.

    Both America/New_York and the ESTSEDT methods are available on this
    elderly buster install. tzselect outputs the America/ version.

    In retrospect, I think making /etc/localtime a link to /etc/timezone
    would probably have made this endless thread moot. That would work
    until some update which will never happen now, deletes /etc/timezone.


    That should not be done.

    /etc/timezone contains the name (filespec) of the time zone not a
    "pointer" to the time zone file



    The education of Gene continues... I've learned a lot.  Thank you all.

    Cheers, Gene Heskett.

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Max Nikulin on Tue Dec 5 18:30:01 2023
    On 12/5/23 11:38, Max Nikulin wrote:

    On 05/12/2023 05:14, Pocket wrote:
    For
    gene..................................................................
    [...]
    zone=EST5EDT
    zoneinfo=/usr/share/zoneinfo
    localtime=/etc/localtime
    timezone=/etc/timezone
    profile=/etc/profile.d
    if [ -e "$zoneinfo"/"$zone" ];then
         ln -sf "$zoneinfo"/"$zone" "$localtime"
    else
         printf "%s\n" "Invalid zone: $zoneinfo/$zone"
         exit 1
    fi
    printf "%s\n" "$zone" > "$timezone"
    printf "%s\n" "TZ=$zone;export TZ" > "$profile"/timezone.sh

    To set /etc/localtime and /etc/timezone I would recommend the command
    that has been repeated several times in this thread:

         dpkg-reconfigure tzdata

    That was not tried.
    And I would recommend against setting the TZ environment variable unless
    it is really necessary. If somebody needs it then it is better to do it
    in /etc/environment.d as well. KDE has its own GUI to set user-specific timezone, but I am unsure if selected value will be applied in the case
    of console or ssh login.

    I am surprised that POSIX EST5EDT timezone has irregularities at least
    as it is implemented in GNU libc. I believed that it specifies just
    standard and summer time.

    Both America/New_York and the ESTSEDT methods are available on this
    elderly buster install. tzselect outputs the America/ version.

    In retrospect, I think making /etc/localtime a link to /etc/timezone
    would probably have made this endless thread moot. That would work
    until some update which will never happen now, deletes /etc/timezone.

    The education of Gene continues... I've learned a lot. Thank you all.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Max Nikulin on Wed Dec 6 06:30:01 2023
    On Tue 05 Dec 2023 at 23:37:31 (+0700), Max Nikulin wrote:
    On 05/12/2023 05:14, Pocket wrote:
    For gene..................................................................
    [...]
    zone=EST5EDT
    zoneinfo=/usr/share/zoneinfo
    localtime=/etc/localtime
    timezone=/etc/timezone
    profile=/etc/profile.d
    if [ -e "$zoneinfo"/"$zone" ];then
        ln -sf "$zoneinfo"/"$zone" "$localtime"
    else
        printf "%s\n" "Invalid zone: $zoneinfo/$zone"
        exit 1
    fi
    printf "%s\n" "$zone" > "$timezone"
    printf "%s\n" "TZ=$zone;export TZ" > "$profile"/timezone.sh

    To set /etc/localtime and /etc/timezone I would recommend the command
    that has been repeated several times in this thread:

    dpkg-reconfigure tzdata

    And I would recommend against setting the TZ environment variable
    unless it is really necessary. If somebody needs it then it is better
    to do it in /etc/environment.d as well. KDE has its own GUI to set user-specific timezone, but I am unsure if selected value will be
    applied in the case of console or ssh login.

    I am surprised that POSIX EST5EDT timezone has irregularities at least
    as it is implemented in GNU libc. I believed that it specifies just
    standard and summer time.

    During WWII they had War Time, just as Britain had Double Summer Time,
    with Summer Time through the winters.

    $ for j in America/New_York EST5EDT Europe/London;\
    > do TZ="$j" date -d @$(TZ=UT date +'%s' -d '1940-01-01'); done
    Sun Dec 31 19:00:00 EST 1939
    Sun Dec 31 19:00:00 EST 1939
    Mon Jan 1 00:00:00 GMT 1940
    $ for j in America/New_York EST5EDT Europe/London;\
    > do TZ="$j" date -d @$(TZ=UT date +'%s' -d '1943-01-01'); done
    Thu Dec 31 20:00:00 EWT 1942
    Thu Dec 31 20:00:00 EWT 1942
    Fri Jan 1 01:00:00 BST 1943
    $ for j in America/New_York EST5EDT Europe/London;\
    > do TZ="$j" date -d @$(TZ=UT date +'%s' -d '1943-06-01'); done
    Mon May 31 20:00:00 EWT 1943
    Mon May 31 20:00:00 EWT 1943
    Tue Jun 1 02:00:00 BDST 1943
    $

    But there are periods when the timezones America/New_York and EST5EDT
    diverge:

    $ for j in America/New_York EST5EDT;\
    > do TZ="$j" date -d @$(TZ=UT date +'%s' -d '1966-06-24');done
    Thu Jun 23 20:00:00 EDT 1966
    Thu Jun 23 19:00:00 EST 1966
    $

    However since these rules are specific to US, I would prefer IANA
    identifiers like America/New_York.

    I don't know who maintains the legacy EST5EDT zone, or for whom;
    the quotation below suggests that it may just follow New Jersey.
    For a long period after the war, it seems the timezones in the US
    were all over the place.

    https://naggum.no/lugm-time.html
    Erik Naggum. A Long, Painful History of Time. 1999
    8.2 Timezone Representation

    David Ols[o]n of Digital Equipment Corporation has laid down a tremendous amount of work in collecting the timezones of the world and their
    daylight saving time boundaries. Contrary to the Unix System V approach from New Jersey (insert appropriate booing for best effect), which
    codifies a daylight saving time regime only for the current year, and
    apply it to all years, David Ols[o]n's approach is to maintain tables of all the timezone changes.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Max Nikulin on Wed Dec 6 14:10:01 2023
    On 12/6/23 07:22, Max Nikulin wrote:
    On 06/12/2023 00:03, Pocket wrote:
    On 12/5/23 11:37, Max Nikulin wrote:
    On 05/12/2023 05:14, Pocket wrote:

    For gene........................................................
    [...]

         dpkg-reconfigure tzdata

    That does not work. Cannot set EST5EDT.  you have to do that manually.

    Do you have reasons to prefer EST5EDT to IANA identifiers like America/Detroit, America/New_York, etc. (that have some differences
    from EST5EDT)? Location-based time zones should be more precise for
    most of users.

    I find it reasonable that "dpkg-reconfigure tzdata" forces users to
    set a timezone that should provide more accurate results for them.


    I follow POSIX



    I have seen America/New_York in a couple of Gene's messages including https://lists.debian.org/msgid-search/7ba9b8bc-2929-4a3d-8007-a1b5c7f6fc16@shentel.net

    so I assume it is one that he should use. My impression is that
    EST5EDT appeared unintentionally.


    I introduced EST5DST to this by simply posted my configuration.


    I don't use KDE, I am using LXDE and systems without desktops.

    Comment that part out of the shell script.

    Do you really need TZ environment variable especially set to the value
    in system-wide configuration? In the Gene's case I mentioned it for
    the case that some piece of software decided to set it, but I have not recommended to set it. It is a way to make debugging of a next issue
    harder.


    I doesn't hurt anything, What if I install some application that uses it
    and it is not set?


    Sorry, I do not have a VM with LXDE to check if TZ is actually set for applications. It may depend on display manager configuration and on
    the approach to launch applications: window manager children or
    systemd session.

    Anyway I noticed "For gene" and I remember that he uses KDE that has a
    GUI for it. However I am unsure if KDE is installed to this 3d printer controller.

    Which is why I use it.

    /usr/share/zoneinfo/posix/EST5EDT is a symlilnk to
    /usr/share/zoneinfo/EST5EDT

    And it is rather confusing since arbitrary abbreviations may be used
    to specify POSIX time zones, e.g. ABC5DEF. From my point of view, it
    is just legacy since the time zone database is available.

    It was painful when JavaScript (ECMAScript 5) had fixed DST rules
    based on current regulations. Chrome followed the standard, Firefox
    used accurate history of time transitions. I have not checked POSIX,
    but I see that GNU libc approach is something third in between.

    Let's use time zones that allows to get accurate local time.

    You use want works for you I will use what works for me.

    Anyway I will use the timezone that I wish to use and that is EST5EDT. 
    All my systems are set to POSIX standards.

    cat /etc/default/locale
    LANG=POSIX

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Max Nikulin on Wed Dec 6 16:50:01 2023
    On 12/6/23 10:07, Max Nikulin wrote:
    On 06/12/2023 20:08, Pocket wrote:
    On 12/6/23 07:22, Max Nikulin wrote:
    On 06/12/2023 00:03, Pocket wrote:
    On 12/5/23 11:37, Max Nikulin wrote:
         dpkg-reconfigure tzdata

    That does not work. Cannot set EST5EDT.  you have to do that manually. >>>
    Do you have reasons to prefer EST5EDT to IANA identifiers like
    America/Detroit, America/New_York, etc. (that have some differences
    from EST5EDT)? Location-based time zones should be more precise for
    most of users.
    [...]
    I follow POSIX

    There are enough oversights in various standards. When accurate time
    zone DB is unavailable, POSIX ones might be used (if risk to get wrong results is accepted). Otherwise, from my of view, it is a legacy to
    keep aside and a kind of cargo cult. That is why I asked concerning
    your reasons.


    Well POSIX has worked for me since the days of Xenix and System V.



    I introduced EST5DST to this by simply posted my configuration.

    Maybe due to language barrier I perceived it as a recommendation for
    Gene. The same time zone appeared earlier in a Gene's message. Perhaps
    he still has it as the /etc/localtime link target. Of course, you are
    free to have whatever you want in your configuration. Please, be
    responsible suggesting anything to others.


    I post what works for and the information I have found due to my research.

    It doesn't mean what I use will work or solve others issues.

    If it offends you then so be it.


    Many times I will research an issue and NOT use what others posted as it doesn't work for me.

    I may end up finding my own solution.



    Do you really need TZ environment variable especially set to the
    value in system-wide configuration?
    [...]
    I doesn't hurt anything, What if I install some application that uses
    it and it is not set?

    It may cause waste of time when you will need to change time zone. If
    not all occurrences are updated you may see wrong time. For me it is a
    reason to avoid unnecessary settings.


    Which is why I use a script to change it



    cat /etc/default/locale
    LANG=POSIX

    Does it set UTF-8 encoding? Sometimes I use C.UTF-8. However there are
    enough subtle differences (sorting, etc.) from any en_* locale.



    locale charmap
    ANSI_X3.4-1968

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Wed Dec 6 17:20:01 2023
    On Wed, Dec 06, 2023 at 10:44:42AM -0500, Pocket wrote:
    Well POSIX has worked for me since the days of Xenix and System V.

    Well, most of the goofy time zone changes were all *before* that. But
    there's at least one that happened more recently....

    unicorn:~$ TZ=EST5EDT date -d '2006-03-12 +4 hours'
    Sun Mar 12 04:00:00 EST 2006

    unicorn:~$ TZ=EST5EDT date -d '2007-03-11 +4 hours'
    Sun Mar 11 05:00:00 EDT 2007

    So, OK, I guess the EST5EDT time zone in Debian 12 properly handles
    the change to start of DST in the US in 2007 (and more specifically,
    handles dates *older* than that using the historic rules instead of
    the current rules).

    Looking at other periods of interest from Wikipedia:

    unicorn:~$ TZ=EST5EDT date -d '1987-04-05 +4 hours'
    Sun Apr 5 05:00:00 EDT 1987

    unicorn:~$ TZ=EST5EDT date -d '1974-01-06 +4 hours'
    Sun Jan 6 05:00:00 EDT 1974

    unicorn:~$ TZ=EST5EDT date -d '1967-04-30 +4 hours'
    Sun Apr 30 05:00:00 EDT 1967

    I guess EST5EDT in Debian 12 is more like a synonym for America/New_York
    than a real historical EST5EDT as described by Erik Naggum <https://naggum.no/lugm-time.html>.

    If this is satisfactory, then you can continue using the legacy time
    zone without running into problems. At least on current Debian systems.
    I wouldn't know how well-behaved that time zone is on other systems.

    Honestly, I don't see the appeal of using legacy time zone names. Is
    it just for the sake of contrariness?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Wed Dec 6 17:30:01 2023
    On 12/6/23 11:18, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 10:44:42AM -0500, Pocket wrote:
    Well POSIX has worked for me since the days of Xenix and System V.
    Well, most of the goofy time zone changes were all *before* that. But there's at least one that happened more recently....

    unicorn:~$ TZ=EST5EDT date -d '2006-03-12 +4 hours'
    Sun Mar 12 04:00:00 EST 2006

    unicorn:~$ TZ=EST5EDT date -d '2007-03-11 +4 hours'
    Sun Mar 11 05:00:00 EDT 2007

    So, OK, I guess the EST5EDT time zone in Debian 12 properly handles
    the change to start of DST in the US in 2007 (and more specifically,
    handles dates *older* than that using the historic rules instead of
    the current rules).

    Looking at other periods of interest from Wikipedia:

    unicorn:~$ TZ=EST5EDT date -d '1987-04-05 +4 hours'
    Sun Apr 5 05:00:00 EDT 1987

    unicorn:~$ TZ=EST5EDT date -d '1974-01-06 +4 hours'
    Sun Jan 6 05:00:00 EDT 1974

    unicorn:~$ TZ=EST5EDT date -d '1967-04-30 +4 hours'
    Sun Apr 30 05:00:00 EDT 1967

    I guess EST5EDT in Debian 12 is more like a synonym for America/New_York
    than a real historical EST5EDT as described by Erik Naggum <https://naggum.no/lugm-time.html>.

    If this is satisfactory, then you can continue using the legacy time
    zone without running into problems. At least on current Debian systems.
    I wouldn't know how well-behaved that time zone is on other systems.


    I used POSIX time zones on other systems including my custom scratch
    built ones.

    The custom built systems was built using a cross compiler for the AMD64, aarch64 and armv7a platforms.

    Never had an issue.

    Don't see what the issue is here?



    Honestly, I don't see the appeal of using legacy time zone names. Is
    it just for the sake of contrariness?

    diff /usr/share/zoneinfo/EST5EDT /usr/share/zoneinfo/America/New_York
    Binary files /usr/share/zoneinfo/EST5EDT and /usr/share/zoneinfo/America/New_York differ

    Because I can ;}


    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Wed Dec 6 17:50:01 2023
    On Wed, Dec 06, 2023 at 11:28:40AM -0500, Pocket wrote:
    diff /usr/share/zoneinfo/EST5EDT /usr/share/zoneinfo/America/New_York
    Binary files /usr/share/zoneinfo/EST5EDT and /usr/share/zoneinfo/America/New_York differ

    unicorn:/usr/share/zoneinfo$ ls -l EST5EDT
    -rw-r--r-- 1 root root 2310 May 28 2023 EST5EDT

    unicorn:/usr/share/zoneinfo$ ls -l America/New_York
    -rw-r--r-- 1 root root 3552 May 28 2023 America/New_York

    unicorn:/usr/share/zoneinfo$ file EST5EDT
    EST5EDT: timezone data (fat), version 2, 5 gmt time flags, 5 std time flags, no leap seconds, 149 transition times, 5 local time types, 16 abbreviation chars

    unicorn:/usr/share/zoneinfo$ file America/New_York
    America/New_York: timezone data (fat), version 2, 6 gmt time flags, 6 std time flags, no leap seconds, 236 transition times, 6 local time types, 20 abbreviation chars

    OK, they are definitely not the same. I don't feel like digging through
    them to try to figure out *what* the differences are, but clearly there
    must be *some* point(s) in time where they give different results.

    If you wish to continue using the legacy time zone, knowing that it's
    different from the proper one (but not precisely in what way), then on
    your own head be it.

    For comparison, this one is cleary safe to use:

    unicorn:/usr/share/zoneinfo$ ls -l US/Eastern
    lrwxrwxrwx 1 root root 19 May 28 2023 US/Eastern -> ../America/New_York

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Curt@21:1/5 to Greg Wooledge on Wed Dec 6 17:50:01 2023
    On 2023-12-06, Greg Wooledge <greg@wooledge.org> wrote:

    Honestly, I don't see the appeal of using legacy time zone names. Is
    it just for the sake of contrariness?


    No lack of contrariness around here. There exists such a thing as putting too fine a point on a thing, a notion which appears to escape some technical mentalities.

    In defence of time zones (they don't really need it, I guess):

    Why are the clocks in Urumqi, China, so far out of kilter with the cycles of
    the sun? Because of a legacy of Mao Zedong and the Communist Party’s desire for
    unified control. Though China is almost as wide as the continental United
    States, the whole country is officially in just one time zone — Beijing time.

    So when it’s 7 a.m. in the Forbidden City, it’s also officially 7 a.m. 2,000
    miles to the west in Urumqi, the capital of the Xinjiang region — even if the
    stars are still out there.

    That can lead to headaches — and lost sleep. “It’s hard to adjust,” says Gao
    Li, a sanitation worker in Urumqi. “I often think we must be the only people
    who eat dinner at midnight.”

    So schools, airports and train stations operate at odd hours; national exams
    are sometimes given in the dead of night; and restaurants stay open for dinner
    into the wee hours.

    The eccentricities of the clock also tend to divide people in Xinjiang by
    ethnicity. The Uighurs, Turkic-speaking Muslims who consider the region their
    homeland, tend to set their clocks two hours earlier, to more closely match the
    local day. But the Han Chinese who live there, members of China’s predominant
    ethnic group, generally follow Beijing time. The discrepancies can be a source
    of confusion and frustration, especially for younger people who frequently
    socialize across ethnic lines.

    https://www.nytimes.com/2016/06/17/world/asia/china-single-time-zone.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Max Nikulin on Wed Dec 6 18:10:02 2023
    On 12/6/23 11:42, Max Nikulin wrote:
    On 06/12/2023 12:22, David Wright wrote:
    On Tue 05 Dec 2023 at 23:37:31 (+0700), Max Nikulin wrote:
    I am surprised that POSIX EST5EDT timezone has irregularities at least
    as it is implemented in GNU libc. I believed that it specifies just
    standard and summer time.

    During WWII they had War Time, just as Britain had Double Summer Time,
    with Summer Time through the winters.

    I was aware of special DST rules during WWII, but I did not expect
    that "EST5EDT" may include any historical data. Certainly it does not explicitly specify days when summer time is effective, just
    abbreviations "EST" and "EDT" with time offset of 5 hours behind UTC
    for "EST". Partial time transition history is new for me for these
    kind of time zones.

    https://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States
    is a long enough article.

    I don't know who maintains the legacy EST5EDT zone, or for whom;
    the quotation below suggests that it may just follow New Jersey.
    For a long period after the war, it seems the timezones in the US
    were all over the place.

    https://data.iana.org/time-zones/theory.html :
    Older versions of this package defined legacy names that are
    incompatible with the first guideline of location names, but which are
    still supported. These legacy names are mostly defined in the file
    'etcetera'. Also, the file 'backward' defines the legacy names
    'Etc/GMT0', 'Etc/GMT-0', 'Etc/GMT+0', 'GMT0', 'GMT-0' and 'GMT+0', and
    the file 'northamerica' defines the legacy names 'EST5EDT', 'CST6CDT',
    'MST7MDT', and 'PST8PDT'.
    [...]
    POSIX does not define the DST transitions for TZ values like "EST5EDT".
    Traditionally the current US DST rules were used to interpret such
    values, but this meant that the US DST rules were compiled into each
    time conversion package, and when US time conversion rules changed (as
    in the United States in 1987 and again in 2007), all packages that
    interpreted TZ values had to be updated to ensure proper results.

    My reading of this document is that EST5EDT file in tzdata is a POSIX extension, not "true" POSIX.

    A lot of details concerning database contents are given if files like https://github.com/eggert/tz/blob/main/northamerica

    I have not noticed any America/* timezone that strictly follows EST5EDT.


    From the README

    The information in the time zone data files is by no means authoritative;
    fixes and enhancements are welcome.  Please see the file CONTRIBUTING
    for details

    I take that as chaos reins supreme and one zone is no better or worst
    that the other(s)

    IE there is no "standard"


    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Wed Dec 6 18:40:01 2023
    On 12/6/23 12:24, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 12:06:04PM -0500, Pocket wrote:
    From the README

    The information in the time zone data files is by no means authoritative;
    fixes and enhancements are welcome.  Please see the file CONTRIBUTING
    for details

    I take that as chaos reins supreme and one zone is no better or worst that >> the other(s)

    IE there is no "standard"
    The standards are determined by government entities. The question is
    how accurately a given time zone reflects the decisions made by the government entities within a given political space.

    If America/New_York more accurately describes the tracking of political timekeeping within the Eastern part of the United States (with specific exceptions, e.g. Kentucky) than EST5EDT does, then America/New_York
    should be preferred for most purposes.

    Well I have used EST5DST for many years, maybe decades and I have yet to have an issue with it, so I wouldn't want to "prefer" America/New_York over EST5DST.

    I haven't found any thing to bump me into changing the time zone file.
    Until I have issues with it I will continue to use it.

    If it ain't broke don't fix it.


    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Wed Dec 6 18:30:01 2023
    On Wed, Dec 06, 2023 at 12:06:04PM -0500, Pocket wrote:
    From the README

    The information in the time zone data files is by no means authoritative; fixes and enhancements are welcome. Please see the file CONTRIBUTING
    for details

    I take that as chaos reins supreme and one zone is no better or worst that the other(s)

    IE there is no "standard"

    The standards are determined by government entities. The question is
    how accurately a given time zone reflects the decisions made by the
    government entities within a given political space.

    If America/New_York more accurately describes the tracking of political timekeeping within the Eastern part of the United States (with specific exceptions, e.g. Kentucky) than EST5EDT does, then America/New_York
    should be preferred for most purposes.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Curt@21:1/5 to Max Nikulin on Wed Dec 6 18:50:02 2023
    On 2023-12-06, Max Nikulin <manikulin@gmail.com> wrote:

    My reading of this document is that EST5EDT file in tzdata is a POSIX extension, not "true" POSIX.


    POSIX format specification

    The POSIX time zone format is the traditionally used format for AIX systems and
    provides a slight performance advantage over the Olson time zone format.
    Example of a POSIX format is EST5EDT.

    The advantage of POSIX is that you can easily and explicitly specify the time
    zone and daylight saving time (DST) details manually, however you wish. The
    performance of applications that call time functions will be faster than using
    Olson specification. And whenever a nation's government decides to change its
    DST rules, the POSIX format is simpler because we can simply change the
    variable definition. There is no need to install any new patch to update time
    database files, as Olson requires.

    Does this apply to "us?"

    https://developer.ibm.com/articles/au-aix-posix/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Curt on Wed Dec 6 19:00:01 2023
    On Wed, Dec 06, 2023 at 05:40:00PM -0000, Curt wrote:
    POSIX format specification

    The POSIX time zone format is the traditionally used format for AIX systems and
    provides a slight performance advantage over the Olson time zone format.
    Example of a POSIX format is EST5EDT.

    The advantage of POSIX is that you can easily and explicitly specify the time
    zone and daylight saving time (DST) details manually, however you wish. The
    performance of applications that call time functions will be faster than using
    Olson specification. And whenever a nation's government decides to change its
    DST rules, the POSIX format is simpler because we can simply change the
    variable definition. There is no need to install any new patch to update time
    database files, as Olson requires.

    Does this apply to "us?"

    https://developer.ibm.com/articles/au-aix-posix/

    This does *not* describe how Debian's EST5EDT, and similarly named
    zones, work. Debian's time zones use a database of DST transition
    periods -- all of them, even EST5EDT. It's just a different set of
    transitions than America/New_York uses.

    Also, you snipped the rest of that section:

    The disadvantage of this approach is that it cannot track the history
    of timezone-related changes and it is not easy to read as it looks
    cryptic. When a government changes the rules and you update your time
    zone (TZ) variable, it is assumed to be the same DST rule for all
    years past and future.

    That's a fairly important paragraph.

    Applying the same rules to a timestamp in 2023 and a timestamp in 2006
    may give incorrect results, as the DST rules in the US changed in 2007.
    That's why the method described by this AIX manual is no longer in
    common use.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Wed Dec 6 19:10:01 2023
    On 12/6/23 12:55, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 05:40:00PM -0000, Curt wrote:
    POSIX format specification

    The POSIX time zone format is the traditionally used format for AIX systems and
    provides a slight performance advantage over the Olson time zone format. >> Example of a POSIX format is EST5EDT.

    The advantage of POSIX is that you can easily and explicitly specify the time
    zone and daylight saving time (DST) details manually, however you wish. The
    performance of applications that call time functions will be faster than using
    Olson specification. And whenever a nation's government decides to change its
    DST rules, the POSIX format is simpler because we can simply change the
    variable definition. There is no need to install any new patch to update time
    database files, as Olson requires.

    Does this apply to "us?"

    https://developer.ibm.com/articles/au-aix-posix/
    This does *not* describe how Debian's EST5EDT, and similarly named
    zones, work. Debian's time zones use a database of DST transition
    periods -- all of them, even EST5EDT. It's just a different set of transitions than America/New_York uses.

    Also, you snipped the rest of that section:

    The disadvantage of this approach is that it cannot track the history
    of timezone-related changes and it is not easy to read as it looks
    cryptic. When a government changes the rules and you update your time
    zone (TZ) variable, it is assumed to be the same DST rule for all
    years past and future.

    That's a fairly important paragraph.

    Applying the same rules to a timestamp in 2023 and a timestamp in 2006
    may give incorrect results, as the DST rules in the US changed in 2007. That's why the method described by this AIX manual is no longer in
    common use.

    TZ=POSIX;date
    Wed Dec 6 18:00:38 POSIX 2023

    TZ=America/New_York;date
    Wed Dec 6 13:00:21 EST 2023

    TZ=EST5DST;date
    Wed Dec 6 13:01:10 EST 2023

    What is the problem?

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Wed Dec 6 19:30:02 2023
    On Wed, Dec 06, 2023 at 01:02:45PM -0500, Pocket wrote:
    TZ=POSIX;date
    Wed Dec 6 18:00:38 POSIX 2023

    "POSIX" is not a valid timezone name in Debian 12. Therefore you're
    just seeing UTC here. Giving an invalid TZ always gives you UTC, but
    with whatever crazy-ass name you used echoed back at you, to give you
    the illusion that your name was valid. It's a *huge* pitfall. I've been
    bit by this myself.

    TZ=America/New_York;date
    Wed Dec 6 13:00:21 EST 2023

    TZ=EST5DST;date
    Wed Dec 6 13:01:10 EST 2023

    What is the problem?

    Gods DAMN it. I didn't want to have to dig through these stupid zone
    dumps, but you're FORCING my hand.

    unicorn:~$ zdump -v -c 1918,1950 EST5EDT
    EST5EDT -9223372036854775808 = NULL
    EST5EDT -9223372036854689408 = NULL
    EST5EDT Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000
    EST5EDT Mon Feb 9 06:59:59 1942 UT = Mon Feb 9 01:59:59 1942 EST isdst=0 gmtoff=-18000
    EST5EDT Mon Feb 9 07:00:00 1942 UT = Mon Feb 9 03:00:00 1942 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 22:59:59 1945 UT = Tue Aug 14 18:59:59 1945 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 23:00:00 1945 UT = Tue Aug 14 19:00:00 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 05:59:59 1945 UT = Sun Sep 30 01:59:59 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 06:00:00 1945 UT = Sun Sep 30 01:00:00 1945 EST isdst=0 gmtoff=-18000
    EST5EDT 9223372036854689407 = NULL
    EST5EDT 9223372036854775807 = NULL

    OK? There's dump number one. Now let's compare to dump number two:

    unicorn:~$ zdump -v -c 1918,1950 America/New_York
    America/New_York -9223372036854775808 = NULL
    America/New_York -9223372036854689408 = NULL
    America/New_York Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 06:59:59 1920 UT = Sun Mar 28 01:59:59 1920 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 07:00:00 1920 UT = Sun Mar 28 03:00:00 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 05:59:59 1920 UT = Sun Oct 31 01:59:59 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 06:00:00 1920 UT = Sun Oct 31 01:00:00 1920 EST isdst=0 gmtoff=-18000
    [...]

    I'm truncating this one because it's much longer. Apparently this one
    shows every year, even if there are no DST rule changes that year. What
    does this mean? Hell if I know. Let's pick a date that's in one of
    these dumps but not the other, shall we?

    unicorn:~$ TZ=America/New_York date -d '1920-03-28 +4 hours'
    Sun Mar 28 05:00:00 EDT 1920
    unicorn:~$ TZ=EST5EDT date -d '1920-03-28 +4 hours'
    Sun Mar 28 04:00:00 EST 1920

    There. There's a timestamp where you get a different result. I'm
    sure there are more.

    If being wrong about times in 1920 (and probably other years as well)
    is not acceptable to you, then you should switch to America/New_York.

    If the idea that you would ever CARE about the clock reading at various
    times during the 1920s is laughable to you, then do whatever you want,
    but please don't advocate that others follow your example.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Greg Wooledge on Wed Dec 6 21:50:02 2023
    On Wed 06 Dec 2023 at 13:27:40 (-0500), Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 01:02:45PM -0500, Pocket wrote:
    TZ=POSIX;date
    Wed Dec 6 18:00:38 POSIX 2023

    "POSIX" is not a valid timezone name in Debian 12. Therefore you're
    just seeing UTC here. Giving an invalid TZ always gives you UTC, but
    with whatever crazy-ass name you used echoed back at you, to give you
    the illusion that your name was valid. It's a *huge* pitfall. I've been
    bit by this myself.

    TZ=America/New_York;date
    Wed Dec 6 13:00:21 EST 2023

    TZ=EST5DST;date
    Wed Dec 6 13:01:10 EST 2023

    What is the problem?

    Gods DAMN it. I didn't want to have to dig through these stupid zone
    dumps, but you're FORCING my hand.

    unicorn:~$ zdump -v -c 1918,1950 EST5EDT
    EST5EDT -9223372036854775808 = NULL
    EST5EDT -9223372036854689408 = NULL

    AAAAAAAA

    EST5EDT Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000

    BBBBBBBB

    EST5EDT Mon Feb 9 06:59:59 1942 UT = Mon Feb 9 01:59:59 1942 EST isdst=0 gmtoff=-18000
    EST5EDT Mon Feb 9 07:00:00 1942 UT = Mon Feb 9 03:00:00 1942 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 22:59:59 1945 UT = Tue Aug 14 18:59:59 1945 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 23:00:00 1945 UT = Tue Aug 14 19:00:00 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 05:59:59 1945 UT = Sun Sep 30 01:59:59 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 06:00:00 1945 UT = Sun Sep 30 01:00:00 1945 EST isdst=0 gmtoff=-18000

    CCCCCCCC

    EST5EDT 9223372036854689407 = NULL
    EST5EDT 9223372036854775807 = NULL

    OK? There's dump number one. Now let's compare to dump number two:

    unicorn:~$ zdump -v -c 1918,1950 America/New_York
    America/New_York -9223372036854775808 = NULL
    America/New_York -9223372036854689408 = NULL
    America/New_York Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 06:59:59 1920 UT = Sun Mar 28 01:59:59 1920 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 07:00:00 1920 UT = Sun Mar 28 03:00:00 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 05:59:59 1920 UT = Sun Oct 31 01:59:59 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 06:00:00 1920 UT = Sun Oct 31 01:00:00 1920 EST isdst=0 gmtoff=-18000
    [...]

    I'm truncating this one because it's much longer. Apparently this one
    shows every year, even if there are no DST rule changes that year. What
    does this mean? Hell if I know.

    Comparing zdump -v America/New_York | cut -b 19- > /tmp/a-ny
    with zdump -v EST5EDT | cut -b 10- > /tmp/e5e

    shows that the former starts at 1883 (no changes then until 1918,
    AAAAAAAA above), and the latter omits the period 1920–1966, except
    for War Time and Peace Time (between BBBBBBBB and CCCCCCCC).

    I've expanded my guesses as to why. I had thought that it might be
    because the "Unix System V approach from New Jersey (insert
    appropriate booing for best effect)" implied that NJ didn't observe
    DST over that period, but perhaps it's just that there's no way to
    determine single dates for changing the clocks.

    "Having rallied the general public's support, the Time Uniformity
    Committee's goal was accomplished, but only after discovering and
    disclosing that on the 35-mile stretch of highway (Route 2) between
    Moundsville, W.V., and Steubenville, Ohio, every bus driver and his
    passengers had to endure seven time changes!"

    https://www.webexhibits.org//daylightsaving/e.html

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Pocket on Wed Dec 6 21:30:01 2023
    On Wed 06 Dec 2023 at 12:06:04 (-0500), Pocket wrote:

    From the README

    The information in the time zone data files is by no means authoritative; fixes and enhancements are welcome.  Please see the file CONTRIBUTING
    for details

    Time zones are a civil and legal matter, so non-authoritative would
    mean that the tz database would not be evidence in a court of law.

    I take that as chaos reins supreme and one zone is no better or worst
    that the other(s)

    IE there is no "standard"

    We all depend on there being a standard to live our daily lives.
    It's only when you start compiling all the standards that have been
    and will be used that it starts to resemble "chaos", particularly
    in some parts of the world. (The US appears to have been one of
    those areas in the not so distant past.)

    Fixes and enhancements means that as changes are reported or
    discovered, the database is corrected. There's a constant trickle
    of future changes being made by governments. People also discover
    historical inaccuracies from literature, like old legal documents
    and newspaper archives. I respect their research.

    On Wed 06 Dec 2023 at 13:02:45 (-0500), Pocket wrote:

    TZ=POSIX;date
    Wed Dec 6 18:00:38 POSIX 2023

    You've got a choice of writing something like posix/America/New_York
    or posixrules, though IDK where the last name came from. (I don't
    think it can be New Jersey on this occasion.)

    TZ=America/New_York;date
    Wed Dec 6 13:00:21 EST 2023

    TZ=EST5DST;date
    Wed Dec 6 13:01:10 EST 2023

    What is the problem?

    Likely none for times present and future, unless Eric Adams should
    pass a timezone bill. (In the 2010s, several U.S. states considered
    legislation to move from the Eastern Time Zone to Atlantic Standard
    Time, allegedly.)

    But I've already posted an example in this thread where these
    timezones give different answers:

    https://lists.debian.org/debian-user/2023/12/msg00329.html

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Cloos@21:1/5 to All on Wed Dec 6 22:30:01 2023
    the current America/New_York equiv is:

    EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00

    -JimC
    --
    James Cloos <cloos@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to All on Thu Dec 7 00:00:01 2023
    
    Sent from my iPad

    On Dec 6, 2023, at 1:28 PM, Greg Wooledge <greg@wooledge.org> wrote:

    On Wed, Dec 06, 2023 at 01:02:45PM -0500, Pocket wrote:
    TZ=POSIX;date
    Wed Dec 6 18:00:38 POSIX 2023

    "POSIX" is not a valid timezone name in Debian 12. Therefore you're
    just seeing UTC here. Giving an invalid TZ always gives you UTC, but
    with whatever crazy-ass name you used echoed back at you, to give you
    the illusion that your name was valid. It's a *huge* pitfall. I've been
    bit by this myself.

    TZ=America/New_York;date
    Wed Dec 6 13:00:21 EST 2023
    TZ=EST5DST;date
    Wed Dec 6 13:01:10 EST 2023
    What is the problem?

    Gods DAMN it. I didn't want to have to dig through these stupid zone
    dumps, but you're FORCING my hand.

    unicorn:~$ zdump -v -c 1918,1950 EST5EDT
    EST5EDT -9223372036854775808 = NULL
    EST5EDT -9223372036854689408 = NULL
    EST5EDT Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    EST5EDT Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    EST5EDT Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000
    EST5EDT Mon Feb 9 06:59:59 1942 UT = Mon Feb 9 01:59:59 1942 EST isdst=0 gmtoff=-18000
    EST5EDT Mon Feb 9 07:00:00 1942 UT = Mon Feb 9 03:00:00 1942 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 22:59:59 1945 UT = Tue Aug 14 18:59:59 1945 EWT isdst=1 gmtoff=-14400
    EST5EDT Tue Aug 14 23:00:00 1945 UT = Tue Aug 14 19:00:00 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 05:59:59 1945 UT = Sun Sep 30 01:59:59 1945 EPT isdst=1 gmtoff=-14400
    EST5EDT Sun Sep 30 06:00:00 1945 UT = Sun Sep 30 01:00:00 1945 EST isdst=0 gmtoff=-18000
    EST5EDT 9223372036854689407 = NULL
    EST5EDT 9223372036854775807 = NULL

    OK? There's dump number one. Now let's compare to dump number two:

    unicorn:~$ zdump -v -c 1918,1950 America/New_York
    America/New_York -9223372036854775808 = NULL
    America/New_York -9223372036854689408 = NULL
    America/New_York Sun Mar 31 06:59:59 1918 UT = Sun Mar 31 01:59:59 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 31 07:00:00 1918 UT = Sun Mar 31 03:00:00 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 05:59:59 1918 UT = Sun Oct 27 01:59:59 1918 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 27 06:00:00 1918 UT = Sun Oct 27 01:00:00 1918 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 06:59:59 1919 UT = Sun Mar 30 01:59:59 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 30 07:00:00 1919 UT = Sun Mar 30 03:00:00 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 05:59:59 1919 UT = Sun Oct 26 01:59:59 1919 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 26 06:00:00 1919 UT = Sun Oct 26 01:00:00 1919 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 06:59:59 1920 UT = Sun Mar 28 01:59:59 1920 EST isdst=0 gmtoff=-18000
    America/New_York Sun Mar 28 07:00:00 1920 UT = Sun Mar 28 03:00:00 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 05:59:59 1920 UT = Sun Oct 31 01:59:59 1920 EDT isdst=1 gmtoff=-14400
    America/New_York Sun Oct 31 06:00:00 1920 UT = Sun Oct 31 01:00:00 1920 EST isdst=0 gmtoff=-18000
    [...]

    I'm truncating this one because it's much longer. Apparently this one
    shows every year, even if there are no DST rule changes that year. What
    does this mean? Hell if I know. Let's pick a date that's in one of
    these dumps but not the other, shall we?

    unicorn:~$ TZ=America/New_York date -d '1920-03-28 +4 hours'
    Sun Mar 28 05:00:00 EDT 1920
    unicorn:~$ TZ=EST5EDT date -d '1920-03-28 +4 hours'
    Sun Mar 28 04:00:00 EST 1920

    There. There's a timestamp where you get a different result. I'm
    sure there are more.

    If being wrong about times in 1920 (and probably other years as well)
    is not acceptable to you, then you should switch to America/New_York.

    If the idea that you would ever CARE about the clock reading at various
    times during the 1920s is laughable to you, then do whatever you want,
    but please don't advocate that others follow your example.

    Well since I am not going to set any of my systems to a time in 1920, then I believe I am save from the time machines.

    I did not advocate setting the time zone to any particular one. I think you read that into my posts. Nor did I tell anyone to use a particular time zone file.

    What I did post was what I use, that is not advocating anything.

    The clock on all my systems is set to GMT time, so all the time zone file/data is doing is displaying the time on the desktop to local time, and for timestamps for logs, files etc.

    It is definitely not worth all the paper these posts were written on.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Thu Dec 7 00:30:01 2023
    On Wed, Dec 06, 2023 at 02:50:50PM -0500, Pocket wrote:
    Well since I am not going to set any of my systems to a time in 1920, then I believe I am save from the time machines.

    It's not just about your system's current time. It's about timestamps
    that you handle in any kind of software. If you process dates and times
    from the past, e.g. in a database application, and intend to display
    them to humans, then you'll want to use a historically accurate timezone.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Thu Dec 7 00:40:01 2023
    On 12/6/23 18:28, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 02:50:50PM -0500, Pocket wrote:
    Well since I am not going to set any of my systems to a time in 1920, then I believe I am save from the time machines.
    It's not just about your system's current time. It's about timestamps
    that you handle in any kind of software. If you process dates and times
    from the past, e.g. in a database application, and intend to display
    them to humans, then you'll want to use a historically accurate timezone.

    Which America/New_York is incorrect from 1918 to 1966, possibly into the 1970s/80s depending upon your location in the Eastern Standard Time zone.


    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to David Wright on Thu Dec 7 00:20:01 2023
    This is a multi-part message in MIME format.
    On 12/6/23 15:28, David Wright wrote:
    Likely none for times present and future, unless Eric Adams should
    pass a timezone bill. (In the 2010s, several U.S. states considered legislation to move from the Eastern Time Zone to Atlantic Standard
    Time, allegedly.)

    But I've already posted an example in this thread where these
    timezones give different answers:

    https://lists.debian.org/debian-user/2023/12/msg00329.html

    Cheers,
    David.

    Which BTW this whole discussion about timezones is just water over the dam.

    The system should be set to UTC, the "timezone" issue is really just a
    "human" issue as the UTC clock is always correct

    --
    It's not easy to be me

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/6/23 15:28, David Wright wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:ZXDZWLlUVHYf+2Rj@axis.corp"><span
    style="white-space: pre-wrap">
    </span>
    <pre class="moz-quote-pre" wrap="">Likely none for times present and future, unless Eric Adams should
    pass a timezone bill. (In the 2010s, several U.S. states considered
    legislation to move from the Eastern Time Zone to Atlantic Standard
    Time, allegedly.)

    But I've already posted an example in this thread where these
    timezones give different answers:

    <a class="moz-txt-link-freetext" href="https://lists.debian.org/debian-user/2023/12/msg00329.html">https://lists.debian.org/debian-user/2023/12/msg00329.html</a>

    Cheers,
    David.

    </pre>
    </blockquote>
    <p>Which BTW this whole discussion about timezones is just water
    over the dam.</p>
    <p>The system should be set to UTC, the "timezone" issue is really
    just a "human" issue as the UTC clock is always correct<br>
    </p>
    <pre class="moz-signature" cols="72">--
    It's not easy to be me</pre>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Thu Dec 7 01:20:01 2023
    On Wed, Dec 06, 2023 at 06:11:16PM -0500, Pocket wrote:
    Because DST was not in force/usage except the metro NYC. Every where else didn't use/have it.

    That makes EST5DST correct except for NYC and America/New_York completely incorrect except of course NYC.

    (EST5EDT not EST5DST.) Now this is interesting. If the America/New_York
    zone definition is *wrong* for me, then I'd like to use one that's less
    wrong. Is there an "Olson format" time zone definition that's actually
    correct for cities like... Cleveland, just as a random example?

    I found <https://www.convertit.com/Go/ConvertIt/World_Time/Current_Time.ASP?For=Cleveland+Ohio+United+States>
    which says that Cleveland is using America/New_York ... and basically
    all the other web sites I've found either show just the current time
    (gee thanks, I knew the *current* time), or they only have data back
    to 1970, like <https://www.timeanddate.com/time/zone/usa/cleveland>.

    Looking at the actual tzdata source, as present in Debian <https://salsa.debian.org/glibc-team/tzdata/-/blob/sid/northamerica>
    I see the following comments:

    # US eastern time, represented by New York

    # Connecticut, Delaware, District of Columbia, most of Florida,
    # Georgia, southeast Indiana (Dearborn and Ohio counties), eastern Kentucky
    # (except America/Kentucky/Louisville below), Maine, Maryland, Massachusetts,
    # New Hampshire, New Jersey, New York, North Carolina, Ohio,
    # Pennsylvania, Rhode Island, South Carolina, eastern Tennessee,
    # Vermont, Virginia, West Virginia

    So, basically every reference I can find, and every reference I've *ever* found, other than Pocket's email, has said that America/New_York is
    correct for me.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Thu Dec 7 01:30:01 2023
    On Wed, Dec 06, 2023 at 07:23:18PM -0500, Pocket wrote:
    On 12/6/23 19:12, Greg Wooledge wrote:
    So, basically every reference I can find, and every reference I've *ever* found, other than Pocket's email, has said that America/New_York is
    correct for me.

    See my other post

    [citation needed]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Thu Dec 7 01:40:02 2023
    On 12/6/23 19:26, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 07:23:18PM -0500, Pocket wrote:
    On 12/6/23 19:12, Greg Wooledge wrote:
    So, basically every reference I can find, and every reference I've *ever* >>> found, other than Pocket's email, has said that America/New_York is
    correct for me.

    See my other post
    [citation needed]

    See my other post

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Pocket on Thu Dec 7 01:50:01 2023
    On Wed, Dec 06, 2023 at 07:37:32PM -0500, Pocket wrote:

    On 12/6/23 19:26, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 07:23:18PM -0500, Pocket wrote:
    On 12/6/23 19:12, Greg Wooledge wrote:
    So, basically every reference I can find, and every reference I've *ever*
    found, other than Pocket's email, has said that America/New_York is correct for me.

    See my other post
    [citation needed]

    See my other post

    If you mean <https://lists.debian.org/debian-user/2023/12/msg00376.html>
    there are zero URLs in your text. "Someone named Pocket said so" is not a strong enough assertion for me to reject every other source citation
    I've found.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Thu Dec 7 02:50:01 2023
    This is a multi-part message in MIME format.
    On 12/6/23 19:46, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 07:37:32PM -0500, Pocket wrote:
    On 12/6/23 19:26, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 07:23:18PM -0500, Pocket wrote:
    On 12/6/23 19:12, Greg Wooledge wrote:
    So, basically every reference I can find, and every reference I've *ever* >>>>> found, other than Pocket's email, has said that America/New_York is
    correct for me.

    See my other post
    [citation needed]

    See my other post
    If you mean<https://lists.debian.org/debian-user/2023/12/msg00376.html>
    there are zero URLs in your text. "Someone named Pocket said so" is not a strong enough assertion for me to reject every other source citation
    I've found.

    Start Here

    The *Standard Time Act* of 1918, also known as the *Calder Act*, was the
    first United States <https://en.wikipedia.org/wiki/United_States>
    federal law implementing Standard time <https://en.wikipedia.org/wiki/Standard_time#North_America> and Daylight
    saving time in the United States <https://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States>.^[2] <https://en.wikipedia.org/wiki/Standard_Time_Act#cite_note-2> It defined
    five time zones for the United States and authorized the Interstate
    Commerce Commission <https://en.wikipedia.org/wiki/Interstate_Commerce_Commission> to define
    the limits of each time zone.

    The section concerning daylight saving time was repealed by the act
    titled /An Act For the repeal of the daylight-saving law/, Pub. L. <https://en.wikipedia.org/wiki/Public_Law_(United_States)>Tooltip Public
    Law (United States) 66–40
    <https://uslaw.link/citation/us-law/public/66/40>, 41 Stat. <https://en.wikipedia.org/wiki/United_States_Statutes_at_Large> 280 <https://legislink.org/us/stat-41-280>, enacted August 20, 1919, over
    President Woodrow Wilson
    <https://en.wikipedia.org/wiki/Woodrow_Wilson>'s veto.

    Section 264 of the act mistakenly placed most of the state of Idaho <https://en.wikipedia.org/wiki/Idaho> (south of the Salmon River <https://en.wikipedia.org/wiki/Salmon_River_(Idaho)>) in UTC−06:00 <https://en.wikipedia.org/wiki/UTC%E2%88%9206:00> CST (Central Standard
    Time <https://en.wikipedia.org/wiki/Central_Standard_Time>), but was
    amended in 2007 by Congress to UTC−07:00 <https://en.wikipedia.org/wiki/UTC%E2%88%9207:00> MST (Mountain Standard
    Time <https://en.wikipedia.org/wiki/Mountain_Standard_Time>).^[3] <https://en.wikipedia.org/wiki/Standard_Time_Act#cite_note-google-3> MST
    was observed prior to the correction.



    --
    It's not easy to be me

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/6/23 19:46, Greg Wooledge wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:ZXEV1CwzxdSu_SrU@wooledge.org">
    <pre class="moz-quote-pre" wrap="">On Wed, Dec 06, 2023 at 07:37:32PM -0500, Pocket wrote:
    </pre>
    <blockquote type="cite">
    <pre class="moz-quote-pre" wrap="">
    On 12/6/23 19:26, Greg Wooledge wrote:
    </pre>
    <blockquote type="cite">
    <pre class="moz-quote-pre" wrap="">On Wed, Dec 06, 2023 at 07:23:18PM -0500, Pocket wrote:
    </pre>
    <blockquote type="cite">
    <pre class="moz-quote-pre" wrap="">On 12/6/23 19:12, Greg Wooledge wrote:
    </pre>
    <blockquote type="cite">
    <pre class="moz-quote-pre" wrap="">So, basically every reference I can find, and every reference I've *ever*
    found, other than Pocket's email, has said that America/New_York is
    correct for me.

    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">See my other post
    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">[citation needed]

    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">See my other post
    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">
    If you mean <a class="moz-txt-link-rfc2396E" href="https://lists.debian.org/debian-user/2023/12/msg00376.html">&lt;https://lists.debian.org/debian-user/2023/12/msg00376.html&gt;</a>
    there are zero URLs in your text. "Someone named Pocket said so" is not a strong enough assertion for me to reject every other source citation
    I've found.

    </pre>
    </blockquote>
    <pre class="moz-signature" cols="72">
    Start Here
    </pre>
    <p>The <b>Standard Time Act</b> of 1918, also known as the <b>Calder
    Act</b>, was the first <a
    href="https://en.wikipedia.org/wiki/United_States"
    title="United States">United States</a> federal law implementing
    <a
    href="https://en.wikipedia.org/wiki/Standard_time#North_America"
    title="Standard time">Standard time</a> and <a href="https://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States"
    title="Daylight saving time in the United States">Daylight
    saving time in the United States</a>.<sup id="cite_ref-2"
    class="reference"><a href="https://en.wikipedia.org/wiki/Standard_Time_Act#cite_note-2">[2]</a></sup>
    It defined five time zones for the United States and authorized
    the <a href="https://en.wikipedia.org/wiki/Interstate_Commerce_Commission"
    title="Interstate Commerce Commission">Interstate Commerce
    Commission</a> to define the limits of each time zone.
    </p>
    <p>The section concerning daylight saving time was repealed by the
    act titled <i>An Act For the repeal of the daylight-saving law</i>,
    <a href="https://en.wikipedia.org/wiki/Public_Law_(United_States)"
    class="mw-redirect" title="Public Law (United States)"><abbr
    title="Public Law (United States)">Pub. L.</abbr></a><span
    class="sr-only">Tooltip Public Law (United States)</span> <a
    rel="nofollow" class="external text"
    href="https://uslaw.link/citation/us-law/public/66/40">66–40</a>,
    41 <a href="https://en.wikipedia.org/wiki/United_States_Statutes_at_Large"
    title="United States Statutes at Large">Stat.</a> <a
    rel="nofollow" class="external text"
    href="https://legislink.org/us/stat-41-280">280</a>, enacted <span
    data-sort-value="000000001919-08-20-0000"
    style="white-space:nowrap">August 20, 1919</span>, over
    President <a href="https://en.wikipedia.org/wiki/Woodrow_Wilson"
    title="Woodrow Wilson">Woodrow Wilson</a>'s veto.
    </p>
    <p>Section 264 of the act mistakenly placed most of the state of <a
    href="https://en.wikipedia.org/wiki/Idaho" title="Idaho">Idaho</a>
    (south of the <a
    href="https://en.wikipedia.org/wiki/Salmon_River_(Idaho)"
    title="Salmon River (Idaho)">Salmon River</a>) in <a
    href="https://en.wikipedia.org/wiki/UTC%E2%88%9206:00"
    title="UTC−06:00">UTC−06:00</a> CST (<a
    href="https://en.wikipedia.org/wiki/Central_Standard_Time"
    class="mw-redirect" title="Central Standard Time">Central
    Standard Time</a>), but was amended in 2007 by Congress to <a
    href="https://en.wikipedia.org/wiki/UTC%E2%88%9207:00"
    title="UTC−07:00">UTC−07:00</a> MST (<a
    href="https://en.wikipedia.org/wiki/Mountain_Standard_Time"
    class="mw-redirect" title="Mountain Standard Time">Mountain
    Standard Time</a>).<sup id="cite_ref-google_3-0"
    class="reference"><a href="https://en.wikipedia.org/wiki/Standard_Time_Act#cite_note-google-3">[3]</a></sup>
    MST was observed prior to the correction.
    </p>
    <pre class="moz-signature" cols="72">


    --
    It's not easy to be me</pre>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Pocket on Thu Dec 7 06:40:01 2023
    On Wed, Dec 06, 2023 at 06:16:42PM -0500, Pocket wrote:

    On 12/6/23 15:28, David Wright wrote:
    Likely none for times present and future, unless Eric Adams should
    pass a timezone bill [...]

    Which BTW this whole discussion about timezones is just water over the dam.

    But still interesting and very much on-topic, because it invites us all to question our incomplete and naive knowledge.

    The system should be set to UTC, the "timezone" issue is really just a "human" issue as the UTC clock is always correct

    If we are picking nits, the system is set to UTX (aka "Unix time"), which
    is, in itself, difficult to grasp and very near (but not equal) to UTC [1].

    The closer you look the messier it gets. UTC, TAI, UT0, UT1... oh, my [2].

    Cheers

    [1] https://unix.stackexchange.com/questions/283164/unix-seconds-tai-si-seconds-leap-seconds-and-real-world-code
    [2] http://www.stjarnhimlen.se/comp/time.html

    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZXFZ9wAKCRAFyCz1etHa RgJ9AJsFBAWxEg8L0l414lMAwzGvcokOtQCcD4Hnoxo4Mr2ugNe44eP229Xi4/A=
    =+9QH
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Pocket on Thu Dec 7 06:50:01 2023
    On Wed 06 Dec 2023 at 18:16:42 (-0500), Pocket wrote:
    On 12/6/23 15:28, David Wright wrote:
    Likely none for times present and future, unless Eric Adams should
    pass a timezone bill. (In the 2010s, several U.S. states considered legislation to move from the Eastern Time Zone to Atlantic Standard
    Time, allegedly.)

    But I've already posted an example in this thread where these
    timezones give different answers:

    https://lists.debian.org/debian-user/2023/12/msg00329.html

    Which BTW this whole discussion about timezones is just water over the dam.

    The system should be set to UTC, the "timezone" issue is really just a "human" issue as the UTC clock is always correct

    While I'm glad we're not discussing whether or not the RTC is set to
    UTC or TAI or local time, I do want my computers to display to /me/ the
    correct date and time corresponding to my location. And when I travel,
    I expect my phone to switch its display automatically, using some
    reasonably up-to-date tables.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to James Cloos on Thu Dec 7 06:50:01 2023
    On Wed 06 Dec 2023 at 16:21:37 (-0500), James Cloos wrote:
    the current America/New_York equiv is:

    EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00

    That's as may be, but this discussion revolves around:

    "The M format is sufficient to describe many common daylight-savings
    transition laws. But note that none of these variants can deal with
    daylight-savings law changes, so in practice the historical data
    stored for named time zones (in the IANA time zone database) is
    necessary to interpret past time stamps correctly."

    (from some random POSIX Time Zone Specifications)

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to David Wright on Thu Dec 7 13:20:02 2023
    On Wed, Dec 06, 2023 at 11:46:50PM -0600, David Wright wrote:
    On Wed 06 Dec 2023 at 18:16:42 (-0500), Pocket wrote:
    Which BTW this whole discussion about timezones is just water over the dam.

    The system should be set to UTC, the "timezone" issue is really just a "human" issue as the UTC clock is always correct

    While I'm glad we're not discussing whether or not the RTC is set to
    UTC or TAI or local time, I do want my computers to display to /me/ the correct date and time corresponding to my location. And when I travel,
    I expect my phone to switch its display automatically, using some
    reasonably up-to-date tables.

    I haven't had time to read and follow up on Pocket's list of references,
    but I'd like to respond to these points with a real anecdote.

    One of our systems at work uses a database with a web front end, where
    users input the starting and ending times of medical tests that have
    been performed on a patient. When the tests are finished, and all the
    data have been entered, billing charges are generated, and these charges
    depend on the length of the test.

    You'd think that you can determine the length of the test by subtracting
    the start time from the end time, right? Unfortunately, that fails
    two times a year, if you don't do it exactly right. The naive approach
    of simply looking at the time field ("test started at 01:45 and ended
    at 03:15 the same day, so it must have lasted 90 minutes") is wrong.
    You have to look at the entire date-plus-time as a single timestamp,
    and interpret it within the correct time zone. That test might have been
    90 minutes, or it might have been 30 minutes, or it might have been 150 minutes, depending on whether a DST transition happened in that interval,
    and which way the clock moved.

    I *literally* had to fix that bug (in March). This isn't hypothetical.

    Of course, the system I'm dealing with only covers tests that have been performed recently, not tests from a century ago. So the historical interpretation of times under previous government DST rules *is*
    hypothetical as far as this anecdote goes. But I hope some of you can appreciate it nonetheless.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to Greg Wooledge on Thu Dec 7 14:10:01 2023
    On 12/7/23 07:16, Greg Wooledge wrote:
    On Wed, Dec 06, 2023 at 11:46:50PM -0600, David Wright wrote:
    On Wed 06 Dec 2023 at 18:16:42 (-0500), Pocket wrote:
    Which BTW this whole discussion about timezones is just water over the dam. >>>
    The system should be set to UTC, the "timezone" issue is really just a
    "human" issue as the UTC clock is always correct
    While I'm glad we're not discussing whether or not the RTC is set to
    UTC or TAI or local time, I do want my computers to display to /me/ the
    correct date and time corresponding to my location. And when I travel,
    I expect my phone to switch its display automatically, using some
    reasonably up-to-date tables.
    I haven't had time to read and follow up on Pocket's list of references,
    but I'd like to respond to these points with a real anecdote.

    One of our systems at work uses a database with a web front end, where
    users input the starting and ending times of medical tests that have
    been performed on a patient. When the tests are finished, and all the
    data have been entered, billing charges are generated, and these charges depend on the length of the test.

    You'd think that you can determine the length of the test by subtracting
    the start time from the end time, right? Unfortunately, that fails
    two times a year, if you don't do it exactly right. The naive approach
    of simply looking at the time field ("test started at 01:45 and ended
    at 03:15 the same day, so it must have lasted 90 minutes") is wrong.
    You have to look at the entire date-plus-time as a single timestamp,
    and interpret it within the correct time zone. That test might have been
    90 minutes, or it might have been 30 minutes, or it might have been 150 minutes, depending on whether a DST transition happened in that interval,
    and which way the clock moved.

    I *literally* had to fix that bug (in March). This isn't hypothetical.


    I worked with time keeping systems for a major player in the business
    back in 1995.

    That feature of the government reared its ugly head back then as well.

    People get more irate when they are not payed properly then they are
    from being over billed,

    trust me been there done that.



    Of course, the system I'm dealing with only covers tests that have been performed recently, not tests from a century ago. So the historical interpretation of times under previous government DST rules *is*
    hypothetical as far as this anecdote goes. But I hope some of you can appreciate it nonetheless.

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Hasler@21:1/5 to Greg on Thu Dec 7 15:30:01 2023
    Greg writes:
    You'd think that you can determine the length of the test by
    subtracting the start time from the end time, right?

    That would have worked had the times been stored as UTC (better yet, TAI
    or Unix time since UTC can cause a similar problem). Databases should
    never store local time.
    --
    John Hasler
    john@sugarbit.com
    Elmwood, WI USA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pocket@21:1/5 to John Hasler on Thu Dec 7 15:40:01 2023
    On 12/7/23 09:22, John Hasler wrote:
    Greg writes:
    You'd think that you can determine the length of the test by
    subtracting the start time from the end time, right?
    That would have worked had the times been stored as UTC (better yet, TAI
    or Unix time since UTC can cause a similar problem). Databases should
    never store local time.

    Yes that is true.

    I use UTC on all my systems as I have some windows machines, one win xp
    dell laptop and two win 7 one laptop and one desktop.

    The dell seems to be too old to use bookworm and the others are used for
    apps that only run on windows (3d cad engineering)

    I just purchased a new laptop yesterday (the price was too good to pass
    up)  so I guess I will find out the trials and tribulations of
    installing bookworm on a new machine with secure boot and the new boot systems.  I have only have experience with BIOS boot loaders.

    Maybe there will be another thread for that ;)

    --
    It's not easy to be me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Pocket on Thu Dec 7 17:00:01 2023
    On Thu 07 Dec 2023 at 09:37:29 (-0500), Pocket wrote:
    On 12/7/23 09:22, John Hasler wrote:
    Greg writes:
    You'd think that you can determine the length of the test by
    subtracting the start time from the end time, right?
    That would have worked had the times been stored as UTC (better yet, TAI
    or Unix time since UTC can cause a similar problem). Databases should never store local time.

    Yes that is true.

    I use UTC on all my systems as I have some windows machines, one win
    xp dell laptop and two win 7 one laptop and one desktop.

    That must be very confusing if you mean that, for example,
    the bash prompt after you'd just sent that post said:

    hostname!pocket 14:38:29 ~$

    Even if databases store UTC, they have to have front ends on local
    time for data entry and reporting, unless you're going to have no
    human involvement. And those original dates and times need to be
    preserved or recreatable for auditing against any contemporary
    records that are in local time. There may be several "local times"
    in use in large organisations.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Max Nikulin on Fri Dec 8 04:10:01 2023
    On Fri, Dec 08, 2023 at 09:38:43AM +0700, Max Nikulin wrote:
    - IANA TZ DB does not support timezones disappeared before 1970.
    <https://data.iana.org/time-zones/theory.html#accuracy>

    Ohhh, *this* is the kind of reference I've been looking for.

    So, we simply acknowledge that historical clock information prior to 1970
    is just not feasibly discoverable. All of the time zone choices are
    going to be flawed, for almost all of the people in the world. We just
    pick from the ones that are known to be good enough.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Greg Wooledge on Fri Dec 8 05:20:01 2023
    On 12/7/23 22:08, Greg Wooledge wrote:
    On Fri, Dec 08, 2023 at 09:38:43AM +0700, Max Nikulin wrote:
    - IANA TZ DB does not support timezones disappeared before 1970.
    <https://data.iana.org/time-zones/theory.html#accuracy>

    Ohhh, *this* is the kind of reference I've been looking for.

    So, we simply acknowledge that historical clock information prior to 1970
    is just not feasibly discoverable. All of the time zone choices are
    going to be flawed, for almost all of the people in the world. We just
    pick from the ones that are known to be good enough.

    .
    Of minor interest to me, not once in the above link does it credit the
    K&R Manual for C, which has a method for determining leap years. It was
    also used in some astronomical programs for lunar and solar eclipses.
    This I think was the reason that all unix times start at midnight
    1/1/1970. In the FWIW dept this time formula is pretty accurate back to
    the middle of 4713 BC.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to gene heskett on Fri Dec 8 13:20:01 2023
    On Thu, Dec 07, 2023 at 11:19:19PM -0500, gene heskett wrote:
    Of minor interest to me, not once in the above link does it credit the K&R Manual for C, which has a method for determining leap years.

    The what now? Leap years are defined by the Gregorian Calendar, as
    declared in the 16th century, long before K&R.

    https://en.wikipedia.org/wiki/Gregorian_calendar

    The rule for leap years is:

    Every year that is exactly divisible by four is a leap year, except
    for years that are exactly divisible by 100, but these centurial years
    are leap years if they are exactly divisible by 400. For example, the
    years 1700, 1800, and 1900 are not leap years, but the year 2000 is.

    — United States Naval Observatory[2]

    I don't have my copy of K&R close to hand, but my preferred implementation
    for a function that decides leap years is (pseudo-code):

    bool isleapyear (int year) {
    if (year % 400 == 0) return true;
    if (year % 100 == 0) return false;
    if (year % 4 == 0) return true;
    return false;
    }

    Why would you expect a time zone database to acknowledge one
    implementation of a simple Gregorian leap year function?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to gene heskett on Fri Dec 8 13:40:01 2023
    On Thu, Dec 07, 2023 at 11:19:19PM -0500, gene heskett wrote:
    [...] a method for determining leap years. It was also
    used in some astronomical programs for lunar and solar eclipses. This I
    think was the reason that all unix times start at midnight 1/1/1970. In the FWIW dept this time formula is pretty accurate back to the middle of 4713
    BC.

    You're not actually talking about leap years, are you? Are you maybe
    talking about *Easter*? Or something involving the spring equinox?

    Also, the idea that a calculation of *anything* in our current Gregorian calendar system would extend back to a BC date is ludicrous, as the
    Gregorian calendar was not in use at that time. It wasn't invented
    until thousands of years later.

    Even the *Julian* calendar used in ancient Rome wouldn't have been in
    use in 4713 BC. Any calendar would have been locally defined, if one
    existed at all.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Greg Wooledge on Fri Dec 8 14:20:02 2023
    On Fri, Dec 08, 2023 at 07:32:25AM -0500, Greg Wooledge wrote:

    [...]

    Also, the idea that a calculation of *anything* in our current Gregorian calendar system would extend back to a BC date is ludicrous [...]

    The high-class version of this swear word would be "proleptic". But yeah,
    I agree with you :-)

    For all the mess involved, and how the calendar change moved through the so-called civilised world, or not, see [1]. Revolts and all (because folks tended to believe they had been stolen days of their lives).

    Now look at a birth date recorded back then in some small-village parish
    by a priest "under spirits" and guess what the real Unix time was back
    then ;^)

    Cheers

    [1] https://en.wikipedia.org/wiki/Adoption_of_the_Gregorian_calendar
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZXMXewAKCRAFyCz1etHa Rr/RAJ9s7ZlUkhhgF8g8B4sMKG+hzDD2VwCePfZTqiV1iTEvCDv8rN/ayJoXe3Q=
    =Rtkk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Schmitt@21:1/5 to gene heskett on Fri Dec 8 14:40:01 2023
    Hi,

    gene heskett wrote:
    In the FWIW dept this time formula is pretty accurate back to the
    middle of 4713 BC.

    Greg Wooledge wrote:
    Even the *Julian* calendar used in ancient Rome wouldn't have been in
    use in 4713 BC. Any calendar would have been locally defined, if one
    existed at all.

    What Gene describes is the Julian Date, an astronomical time counting.
    I first met it in HP BASIC but it is also used by database systems.
    0.000000 is 1st Januar 4713 BC 12:00 UTC (year -4712 because the is
    no year 0 in BC/AD counting).

    It must not be confused with the Julian Calendar, which invented the
    the 4-year leap year rule.
    This worked until pope Gregor saw the need for a finer adjustment to the
    day fractions of the astronomical year. This yielded the rules about
    100 and 400 years.

    Afaik, they all suffer from being day-oriented which makes trouble because
    the astronomical days get longer over time and thus cause leap seconds.
    For long term accuracy in the range of seconds one needs to work with time countings close to International Atomic Time (TAI) which is nearly perfect
    but becomes only available up to a month too late.


    Have a nice day :)

    Thomas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Bonno Bloksma on Fri Dec 8 18:00:01 2023
    On Fri, Dec 08, 2023 at 04:12:54PM +0000, Bonno Bloksma wrote:
    Hi Greg,
    bool isleapyear (int year) {
    if (year % 400 == 0) return true;
    if (year % 100 == 0) return false;
    if (year % 4 == 0) return true;
    return false;
    }

    Except, I think it should be in reverse order because now 2000 first gets a true, then a false but then a true again and after that EVERYTHING gets a false ;-)

    No, because "return" is immediate. It's not "set the return value to this,
    and then that'll be the thing the function returns when you reach the end". It's "return this value RIGHT NOW and don't go any farther".

    So, in pseudo code
    bool isleapyear (int year) {
    return false;
    if (year % 4 == 0) return true;
    if (year % 100 == 0) return false;
    if (year % 400 == 0) return true;
    }

    Your way should be:

    bool isleapyear (int year) {
    bool ret = false;
    if (year % 4 == 0) ret = true;
    if (year % 100 == 0) ret = false;
    if (year % 400 == 0) ret = true;
    return ret;
    }

    Your way does three modulus operations every time, no matter what. Mine
    will do fewer than 3 if it gets lucky (input is a multiple of 100).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Greg Wooledge on Fri Dec 8 18:10:01 2023
    On Thu 07 Dec 2023 at 22:07:44 (-0500), Greg Wooledge wrote:
    On Fri, Dec 08, 2023 at 09:38:43AM +0700, Max Nikulin wrote:
    - IANA TZ DB does not support timezones disappeared before 1970.
    <https://data.iana.org/time-zones/theory.html#accuracy>

    Ohhh, *this* is the kind of reference I've been looking for.

    So, we simply acknowledge that historical clock information prior to 1970
    is just not feasibly discoverable. All of the time zone choices are
    going to be flawed, for almost all of the people in the world. We just
    pick from the ones that are known to be good enough.

    Where it's felt important enough, or is accessible enough,
    people are prepared, it seems, to do the necessary work.
    Britain appears to lead the world in that respect. It
    probably helps to be a small, civilized country. :)

    https://www.polyomino.org.uk/british-time/

    On the subject of leap seconds, I think there's a point
    that's missed on this Wiki page: https://en.wikipedia.org/wiki/Greenwich_Time_Signal
    where it says: "Until 1972, the pips were of equal length
    and confusion arose as to which was the final pip, hence
    the last pip is now of extended length."

    My recollection is of listening to the first "leap pip"
    on Radio4, which was the first time the final pip had
    been made longer. (There had been discussions about
    leap seconds on Radio4 in the lead up to the event.)

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to All on Sat Dec 9 01:40:01 2023
    I had a total crash and among the things missing after the psu was
    replaced, was apparently all my tbird message tags, as I had been
    tagging this whole thread so I could look it up again after the dust
    settled. But now I have no tags.

    ISTR someone gave me a journalctl line that picked out all the ntp
    stuff, including all the traffic because before the crash I was not only serving the printer I gad managed to collect 10-15 other clients nut
    after the rework and 30+ reboots I cannot find that message again, and I
    need it.

    Can I trouble whoever posted it to repeat it, please?

    Thank you.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)