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: encode-time vs decode-time Date: Wed, 07 Aug 2019 13:33:50 +0200 Message-ID: <87sgqd9plt.fsf@mouse.gnus.org> References: <502b23f8-58ed-38ff-ae50-fae391129a10@cs.ucla.edu> <87v9viuivo.fsf@mouse.gnus.org> <83blx2cr2o.fsf@gnu.org> <8336iecfvr.fsf@gnu.org> <68d24d6a-d427-baef-27e9-ea1cbbd64c18@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="245591"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , andrewjmoreton@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 07 13:34:27 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 1hvKD5-0011kJ-8Y for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 13:34:27 +0200 Original-Received: from localhost ([::1]:39988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvKD4-0000un-Az for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 07:34:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55642) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvKCl-0000oG-Jt for emacs-devel@gnu.org; Wed, 07 Aug 2019 07:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvKCk-0002u4-KC for emacs-devel@gnu.org; Wed, 07 Aug 2019 07:34:07 -0400 Original-Received: from lamora.getmail.no ([84.210.184.7]:47132) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvKCj-0002sA-3W; Wed, 07 Aug 2019 07:34:05 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 0FAF460DBA; Wed, 7 Aug 2019 13:34:02 +0200 (CEST) Original-Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id sEc7Ovyz-GJF; Wed, 7 Aug 2019 13:33:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 83F0660DCF; Wed, 7 Aug 2019 13:33:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at lamora.get.c.bitbit.net Original-Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sqYFIj3TV0ly; Wed, 7 Aug 2019 13:33:51 +0200 (CEST) Original-Received: from sandy (cm-84.212.202.86.getinternet.no [84.212.202.86]) by lamora.getmail.no (Postfix) with ESMTPSA id 1AF3560DCE; Wed, 7 Aug 2019 13:33:51 +0200 (CEST) In-Reply-To: <68d24d6a-d427-baef-27e9-ea1cbbd64c18@cs.ucla.edu> (Paul Eggert's message of "Tue, 6 Aug 2019 18:02:30 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 84.210.184.7 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:239217 Archived-At: Paul Eggert writes: > Eli Zaretskii wrote: >> Was this inspection done on Emacs' own code, or also outside Emacs? > > Lars didn't say. I assume he meant Emacs's own code. Yup. > One alternative would be to leave decode-time's API unchanged from > Emacs 26 and put the new functionality into a new function, say > "time-calendrical". While we're at it, we could call the data > structure that the new function returns a "calendrical timestamp" > instead of a "decoded timestamp", and rename the recently-added > functions make-decoded-time, decoded-time-hour, decoded-time-year > etc. to make-calendrical-time, calendrical-hour, calendrical-year, > etc. I agree; calling these things encoded/decoded time isn't very clear terminology. "calendrical" is a mouthful, though. And "calendar" would imply that it belongs in the calendar package, perhaps... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no