From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: Represent NTP's origin time Date: Thu, 15 Apr 2021 10:27:27 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 15 10:28:20 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 1lWxMJ-00053a-Vq for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 10:28:19 +0200 Original-Received: from localhost ([::1]:42994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWxMJ-00042f-0m for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 04:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWxLj-00037C-Oz for emacs-devel@gnu.org; Thu, 15 Apr 2021 04:27:43 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:37406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWxLg-0005oo-Ua for emacs-devel@gnu.org; Thu, 15 Apr 2021 04:27:42 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 15 Apr 2021 00:00:18 -0400") Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:268081 Archived-At: >>>>> On Thu, 15 Apr 2021, Stefan Monnier wrote: > 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")) > => (-32745 59520) > (encode-time (parse-time-string "1900-01-01T00:00-00:00")) > => (error "Specified time is not representable") > Do we have some "standard" workaround? Overflow in the underlying mktime(3) or mktime_z(3)? Are there still systems around where time_t has only 32 bits?