From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.devel Subject: Re: Calc; Cannot add time units to date Date: Thu, 22 Mar 2018 13:47:43 -0700 Message-ID: References: <87vadobgeq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521751607 3714 195.159.176.226 (22 Mar 2018 20:46:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2018 20:46:47 +0000 (UTC) Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 22 21:46:43 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ez76g-0000s9-Qn for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2018 21:46:42 +0100 Original-Received: from localhost ([::1]:34825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez78k-0005jI-62 for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2018 16:48:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez786-0005iQ-5j for emacs-devel@gnu.org; Thu, 22 Mar 2018 16:48:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ez781-0002CN-NS for emacs-devel@gnu.org; Thu, 22 Mar 2018 16:48:10 -0400 Original-Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]:55990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ez781-0002Bx-H6 for emacs-devel@gnu.org; Thu, 22 Mar 2018 16:48:05 -0400 Original-Received: by mail-it0-x236.google.com with SMTP id e195-v6so13013751ita.5 for ; Thu, 22 Mar 2018 13:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WV1cUT6ou3cIJ+pHgmt7nPYCIALchb72twXOxiINuuY=; b=akSmsnOlijBgIZgD+TNa5Eri8+oKQTMeT3qiGpw1vr5drygTfwuFHE3XG2Lar8b/Od NWUqKCrtQ2EEcfCa1Z/s6AjI0ZLpBDKU/Mf/pKgdCUfBlVuuk9K99ZKZBGFE+oyMg7Px hrdYpe5FFZBl5klU6qLnDHUdrm0lF7phw72Ks0hLRMHy9ngpuSmhWw4wIwcl4PwbH1xk 5GfmRVqOw/JNPazWQMfAHbJk9yK8bixVTIuYf6bp43ygY1al7EsZWs5Y8vpSEZ5q8Yhk 4LskBBIlVPJ9cfQ5rp3KoUeJEYG5hSzEYVK/6yNVOC5CJOln3/X5k1IfxClmTRIEY5Pu bWyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WV1cUT6ou3cIJ+pHgmt7nPYCIALchb72twXOxiINuuY=; b=ENeynnMzNtx9XxitWgLTRs45XZwkkiJDS7wFD/BJ3aFa8716dDF+FddAsFV/1ZfwfM AVtFG+kn+SN9Cbwu+l9fMt0qfYJAdxBOBFrDFH+LC9poMuMAh3kqz2LiBgRGcu0yr0/y nzf+yrZ4GRWKGHdtu/GVv+XZ/4ORi9qIAdb1vAZlUGGJVBAoWiWZy+5aq/9rWSAFOt1m k7An3+dnbzazrVumF8KZcYqvWtRZWIawxm6BP4Ujae46URyxoBe/4X9rny3LZAQcQ8pZ XAFx/b9SwpFAATRusFnLazpYTCbsURAy1KNs2HL58+Fqam+b1gMyfEm7/jKQF/rIqCPS rpfw== X-Gm-Message-State: AElRT7ECVB1GW4NXcuPXjlsmMuGTk2h6m/QAOYwf5f3Q/Noh2HPtlpWX JEcRYvvYBtpa0G4Y9ePFz1nsvZFTQjJCjrY9PsGG4g== X-Google-Smtp-Source: AG47ELvmfJa2E9aoBQ8T9oRJbVa86FHuLWJ2fY9Q3bkMqCOZfBbSAlXRl/92IpgkVrP+ebYhq0N/Er95Dm3hSK0KrFs= X-Received: by 2002:a24:9985:: with SMTP id a127-v6mr10851195ite.108.1521751684609; Thu, 22 Mar 2018 13:48:04 -0700 (PDT) Original-Received: by 10.107.104.14 with HTTP; Thu, 22 Mar 2018 13:47:43 -0700 (PDT) X-Originating-IP: [104.200.151.96] In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:223925 Archived-At: That's because hour is not a time unit. hr is a time unit: 1.5 hr + 0.5 hr =3D 2. hr 1.5 hr + 30 min =3D 2. hr (You need to press u s to simplify the units for the second example, but this does nothing for the date arithmetic that is the subject of this bug report.) On Thu, Mar 22, 2018 at 1:16 PM, Noam Postavsky wrote: > On 22 March 2018 at 13:38, Allen Li wrote: >> On Thu, Mar 22, 2018 at 2:36 AM, Robert Pluim wrote: >>> >>> Hmm, I=CA=BCm not convinced that=CA=BCs meant to work. Could you point = me at a >>> section of the Calc manual that describes that? >> >> It's not in the manual, but I expected that it would work. Is it >> unreasonable to expect to be able to add time units to dates? > > I think the point is that 1.5hr is not a time unit from Calc's point of v= iew. > > 1.5hr + 1.5hour doesn't add together either.