From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Support for sub-second time in decoded time Date: Mon, 29 Jul 2019 17:00:31 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="235961"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 29 17:12:14 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hs7Js-000zFZ-UU for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 17:12:13 +0200 Original-Received: from localhost ([::1]:53256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7Jr-0003ZK-RV for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 11:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39208) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs78g-0006hf-Mo for emacs-devel@gnu.org; Mon, 29 Jul 2019 11:00:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs78f-00069W-Dh for emacs-devel@gnu.org; Mon, 29 Jul 2019 11:00:38 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:39486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs78f-000681-5x for emacs-devel@gnu.org; Mon, 29 Jul 2019 11:00:37 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hs78a-00038W-0f; Mon, 29 Jul 2019 17:00:34 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEX/99iFfG3+8dL+9tf/ /N7+9db/+doFNWQJAAACYUlEQVQ4jVWUTY6jMBCFS7HK64ZR74ORe20Nck5gsa5gOWtLIb7/EeaV oTPdhUKQP9evH5Dr5t1/8xw358gvptlghOXBOYih1tZW84W81GoJIOeFuMittZTa7UU+VLIUSxHs zvEhbU9ptY1mqdZiXU0MU4BHW+2qoSgvukx6Q459h0eiK0WKGUsRVMpCtScBCFSPzYXVLQDs657I Ez2PDIaAsG2HB8BsqYfKheMCYMnua0oIBaAF5VINxRgEICmYbX3pfimWnkZKBmgKvK109CDEVMjU BoCqZiJzdEdWgZbbenKi5ajKuYsrTPYEV0KZWtXmhmnMptp2VpVzQNOxTAPMa6SzqpiR3MRt6CZv cH2iD5HoDoDh7idAHVkyI9IIOKLatKY+K7OIsEaSch/mcERK5HTYWXpqgPHxDTzGi9PWosY7fm+P MnOIxQCMRXPY/e1RII6CHJ8XN30D7dxEgyx/sZndffg8IyWSxosC5JhwfeiJd/BVESjHRcE4DFfS CXbQLgCGp6Nzn08XhHqVKPZ5P8Anxn6AB07WQKQX3T4MH9ae5Qq9cDq15mnwwXlj3w1SP0+ibfoT 6NBhBwvWoOVKgfUwQd59NAt5CAmTgiP3ilC2WngQxHlYFyjkU/DicIQ2RbCKG2SFK/WdxnA0oi64 QT2t3nZVO0tgxiT19EtEwRDBjeaAlAvzIqo8hshq7S+KpxfjndV3U5MY4vbk4jxAhNoKS9aSCSLD 8PoHQGW7YcA+dFAKpNzBpn+ueI9gOZ7yBvj+gDhfgiYt3m0/gfNQxYZvzYanX0Bt+/H8C/y0f/36 52z51Ac6AAAAAElFTkSuQmCC In-Reply-To: (Stefan Monnier's message of "Mon, 29 Jul 2019 10:43:55 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239003 Archived-At: Stefan Monnier writes: >>> `encode-time` uses a fraction-representation (NOM . DENOM), which is >>> probably easier to manipulate. >> >> You mean internally? > > No, as yet-another format. > >> It doesn't seem to be mentioned in the doc string, >> but it's an entire essay now... > > It's here: > > If FORM is a positive integer, the time is returned as a pair of > integers (TICKS . FORM), where TICKS is the number of clock ticks and= FORM > is the clock frequency in ticks per second. (Currently the positive > integer should be at least 65536 if the returned value is expected to > be given to standard functions expecting Lisp timestamps.) If FORM is > t, the time is returned as (TICKS . PHZ), where PHZ is a platform dep= endent > clock frequency in ticks per second. If FORM is =E2=80=98integer=E2= =80=99, the time is Hm, OK. But I don't see how that relates to adding a new sub-second field to the output value from `decode-time'. :-) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no