From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Calc; Cannot add time units to date Date: Fri, 23 Mar 2018 09:32:42 +0100 Message-ID: <87370ryyxh.fsf@gmail.com> References: <87vadobgeq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521793892 17238 195.159.176.226 (23 Mar 2018 08:31:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2018 08:31:32 +0000 (UTC) Cc: Noam Postavsky , Emacs developers To: Allen Li Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 09:31:27 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 1ezI6h-0004Np-Kf for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2018 09:31:27 +0100 Original-Received: from localhost ([::1]:36568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezI8k-0007bX-LQ for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2018 04:33:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezI83-0007b4-2d for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:32:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezI7y-000645-1v for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:32:51 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:46445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezI7x-00061y-Rt for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:32:45 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id s10so11220610wra.13 for ; Fri, 23 Mar 2018 01:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=0H09IFuoCsBMsKw0oFwJGWpMTm/vhb5PysOMsu3Rbyw=; b=F6EE1YGfGyXzts+moI1IQs2sxknHKACPLoq9Cq+8Epyf/msV3AxqSNsT4kWZIZefou d4pDbCcx5y1ayfdiZh3VSTYyz2quVcAJQA1wFsYswswJuvVzMAwUvtYIPvTNif8afquf yyZcXI07iQ+d7eVamCkWuf+VD8W1qGCzNg+0x50bW9XpCZHklz9dXHsiNAy0eSSQchMZ PGLrqFuZRHXOXMEDVzcZ9aP1VE0vWahcNIl1OO9axUIppIEbpA2rhpuduPvs64CMQ0+A mV6SuZ9p3b5ODLURFtz7704owuraJtKQ2wDfyIlPgnR4C0dQcHsSqrrAbTd4zy2pwp9m Tavg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version; bh=0H09IFuoCsBMsKw0oFwJGWpMTm/vhb5PysOMsu3Rbyw=; b=nltlTVtPXrwNYVi3XzEQ6sTSq/tyEHDZftnCx825ciDi+n45GAwGl5S6p9rV4T1OAx GI/REC0bnFc/GASaYzPTVFLhcuOBXmAkcvxXFqkfb3p5au0jlcalaQFKvbknRLeOCkNr VhacS43ILuspJSI/IZBadfLR8M0pp+M8oAYC2/WR0n1KsmyE3tuVeAk6x1NTzNqzi788 FrWLFlvIxbbz4/5hFlVxLg+zLCRma9VAz7VDYG9grY/jGPwaDcl5uqbuYy33KPyVUV/Z AVMdOii484zqHBzpXWIB2V97/Qdd9kzxDZi2uGyhrsGkFtHhNXjvhRCQBXLv8fqO+imY zmmA== X-Gm-Message-State: AElRT7GUqQWCfKqK3u+DNFsI2xAaYxt/Ugn/B4WN8/BS/V6h6zGT/7b1 T4S57eRPxU+06TZyffq87Le4LHgt X-Google-Smtp-Source: AG47ELvIl+DuBxylhWubfIIxgDLqj7l4MyyT9zHZ387cJTKLgOBW/6yu8hAViGmmjtVBfVq8bJDRXQ== X-Received: by 10.223.225.133 with SMTP id k5mr7592700wri.263.1521793964336; Fri, 23 Mar 2018 01:32:44 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id o11sm8517639wrg.91.2018.03.23.01.32.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Mar 2018 01:32:43 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Allen Li's message of "Thu, 22 Mar 2018 13:47:43 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:223943 Archived-At: Allen Li writes: > That's because hour is not a time unit. hr is a time unit: > > 1.5 hr + 0.5 hr = 2. hr > 1.5 hr + 30 min = 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.) The way I read it, hr and min are units, and 't N' produces a date. The documented way to add a time to a date is with '1h', which works fine. Robert