From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Represent NTP's origin time Date: Sat, 17 Apr 2021 16:09:51 +0200 Message-ID: <20210417140951.GB726@tuxteam.de> References: <87o8efcqfh.fsf@Rainer.invalid> <8735vpyqir.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1UWUbFP1cBYEclgG" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40541"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 17 16:10:39 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXleh-000ASx-Hn for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Apr 2021 16:10:39 +0200 Original-Received: from localhost ([::1]:43016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXleg-0002uj-L0 for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Apr 2021 10:10:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXldz-0001wH-M6 for emacs-devel@gnu.org; Sat, 17 Apr 2021 10:09:55 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:53650) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1lXldx-0001Dp-Fi for emacs-devel@gnu.org; Sat, 17 Apr 2021 10:09:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=hnr7Alo83rZCSjTcCY7v1GO08ES8rsqOZ3H5v8ewMrU=; b=TE+0pV7HzXQYsT7qQ+o895lL0eut0EJLZ22Kxsnbea6UaRA8PHJ0qTB9nBPmbJ5sua3WINzEBHaxedoShves1arz2uuIw/xx6N5irtEkGVvdtAbhdJopOGRQGqvTG5o04iruf20suaizWmtaQvSudDwqM7Qadn8HAq/UOLBaONo0jkn/zPZve34XlUc5wUjhcxK0258vmmwVgscNMdwFjrQk3XYnVFiDniPQ7rcAuiEf5jsPk/IvIXjtlPP6hKdpB5jSVfkzfRLOO43U8YJKaElotE2UY38oYvleVOjN35tIh85t8GKdnFT2ousujpIUxlvlmn21Cj+QfmmA6nw+Fg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1lXldv-0000UY-GS; Sat, 17 Apr 2021 16:09:51 +0200 Content-Disposition: inline In-Reply-To: <8735vpyqir.fsf@Rainer.invalid> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268128 Archived-At: --1UWUbFP1cBYEclgG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 17, 2021 at 03:44:28PM +0200, Achim Gratz wrote: > Achim Gratz writes: > > Stefan Monnier writes: > >> NTP represents time stamps by counting seconds from January 1 1900, but > >> my Emacs doesn't seem to be able to represent this: > >> > >> (encode-time (parse-time-string "1902-01-01T00:00-00:00")) > >> =3D> (-32745 59520) > >> (encode-time (parse-time-string "1900-01-01T00:00-00:00")) > >> =3D> (error "Specified time is not representable") > >> > >> Do we have some "standard" workaround? > > > > Get off your 32bit system already? >=20 > There have been responses that called this answer "unkind" or "snarky". Only mildly so, from my side. > It wasn't meant to be, I apologise for the impression that was likely > created by being too brief [...] I do understand the issues, but see below. I replied (or so I thought) "in kind". A better reply would have been: Emacs supports 32 bit platforms. Unless ending 32 bit support is in the near-future, it'd be a good idea to think about how to support a wider (possibly 64 bit) time_t even on a 32 bit Emacs. The *BSDs and Linux (beyond kernel 5.6ish) do support 64 bit time_t in their 32 bit variants: perhaps this is an orientation. Cheers - t --1UWUbFP1cBYEclgG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmB67C8ACgkQBcgs9XrR2kbL4wCfWMnHT9lCvmTYFwtXv6UbFnlu 71cAniH64LzsKaU//uNJifxnboBKYinb =SqB1 -----END PGP SIGNATURE----- --1UWUbFP1cBYEclgG--