From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Support for sub-second time in decoded time Date: Mon, 29 Jul 2019 10:03:30 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204748"; 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: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 29 16:04:03 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 1hs6Ft-000r7u-OO for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 16:04:01 +0200 Original-Received: from localhost ([::1]:52446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs6Fs-00059z-PT for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 10:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49917) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs6FS-00059e-Mn for emacs-devel@gnu.org; Mon, 29 Jul 2019 10:03:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs6FR-0004kc-PR for emacs-devel@gnu.org; Mon, 29 Jul 2019 10:03:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38239) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs6FR-0004k2-Ix for emacs-devel@gnu.org; Mon, 29 Jul 2019 10:03:33 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D3B79445818; Mon, 29 Jul 2019 10:03:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AA92B44577A; Mon, 29 Jul 2019 10:03:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1564409011; bh=cY17HE+Lk0s7TuIB33EtGsb+NnGSrBQzUKHCNOCTJbA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WXgaT0o0gMKuIxbT1jCInOfI73c31rKDuuerQ/lQfflvijCCidsN0JhSTklufkL41 5CabG1fdy334ivm5jOS2P6Rj7tGMWKr7LP+klE++h7UqMzTixlgNouKjGQU4S9a2T8 p/93RzHZRBVafJjE53zUhib1DnMyhc453iZdcSlLR0fYgO9DVVwmx0B2HXf8MWF2fe E8crc9ErTh6ENOSBJH0OI0L4FBD25yqf88aGqkFdgyXx0HwsmJOeBDvrziaf4RwLlY a0X3c9TPBAyUVXxgTT+3x+tIgt9if9c88I7khJYdbmlF980J0+ZYgh1c7hhCYcXsAG /p+Ke2yYzjytg== Original-Received: from pastel (unknown [216.154.19.233]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 81F78120EF4; Mon, 29 Jul 2019 10:03:31 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 29 Jul 2019 11:48:02 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:238995 Archived-At: > `current-time' returns its data as (HIGH LOW USEC PSEC), but now that we > have bignum support, perhaps we don't need to do it this way. What > about just having a field in decoded times that's the fraction of a > second? So 34.5603 seconds would be represented as > > (34 ... 5603) `encode-time` uses a fraction-representation (NOM . DENOM), which is probably easier to manipulate. [ Note: I find `encode-time` vs `decode-time` very confusing. ] Stefan