From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Calc; Cannot add time units to date Date: Fri, 23 Mar 2018 04:41:01 -0400 Message-ID: References: <87vadobgeq.fsf@gmail.com> <87370ryyxh.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1521794386 16286 195.159.176.226 (23 Mar 2018 08:39:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2018 08:39:46 +0000 (UTC) Cc: Allen Li To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 09:39:42 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 1ezIEg-00048C-1w for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2018 09:39:42 +0100 Original-Received: from localhost ([::1]:36592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezIGj-0003Bv-E5 for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2018 04:41:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezIG0-0003AF-6m for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezIFz-0002ns-Ax for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:41:04 -0400 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:44051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezIFz-0002nc-5v for emacs-devel@gnu.org; Fri, 23 Mar 2018 04:41:03 -0400 Original-Received: by mail-oi0-x236.google.com with SMTP id j143-v6so760352oih.11 for ; Fri, 23 Mar 2018 01:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tFpjRZuvdRlVFVWj5Db8/3/dQCjyT9i2+n9X764EFvg=; b=qLoGbM2T/kel+BOHngZu4i9wpJf5K0bvvCJiXJQ7x0lA17W1gba3CqDBC0OK+sd9hX fIDBQ3zw9GAmOX33lbQAew9NPdeqBMuJMQeoaV/PjSCjnm+8Pm6xN0pU6HzdoWuXiDKs AW4ErVuqO67du/kjeC4McMaAAQoqe1ko1nqJPw0MLOSKL43p3GN57TaZbGyZZYoOOOml rqa3N++TY4BCG475oCs2hpisVQuQt8nI6H58rWv/QXZ9YzysKsg6Ygg9yUz3m+oe/Po3 ktTNSGgDBtl37XilcANnnF1vCT7rAVcxbGdIfi7IU2lMlLz6kal+En8ObW2jmcqXTeB0 9Qgg== 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; bh=tFpjRZuvdRlVFVWj5Db8/3/dQCjyT9i2+n9X764EFvg=; b=Q+JF33gtDsL1sLHwbACTMdBsWVtFpKqieh8IdGVih/OZ5atEMLU+NGFV81n0HROKwc uIbgUx+A/vgxxqc9XO+fzEIeq1UEE5l+ylTWDOZApbuRLgTE3dpgMig9hsw1DXqmLVJn WsP06C/K0mA0XcUVPmb0GuohcN7hbU9h1dFQtqZW1uIUN5ZVXwiyYB7PrPODtcQC/jpV gqo2lGGZ2S29rY7PyuOFbwe++Ejnj4iC7ai27pYUSXe1XNoWFuFaI3YZ5O9XW4qMSzj5 EZSiIoR5JCa1p0MfcE2+pD9y1kU2WYRe3tK7TXxaprtjp3YlCwoYj/yfZgyLJf5EILtB JOkQ== X-Gm-Message-State: AElRT7F3FsQJU4d+Lg12fZN7tcOd8u7tlV2QkpUoJnP6I5HtsiEfylM6 OBdfAEUVRCysxt/u8r4jWKgHfyB3ADP3x8dXc0g= X-Google-Smtp-Source: AG47ELvMzIi4K7zM/7uMtI/z2Qw/elpn796aQU/cq9bhh4Jl4G4+bMlinbjB+6QHCkJpWH4ZE+WdSeaTf5J3VdOqao4= X-Received: by 10.202.91.213 with SMTP id p204mr14767258oib.239.1521794462231; Fri, 23 Mar 2018 01:41:02 -0700 (PDT) Original-Received: by 10.74.212.23 with HTTP; Fri, 23 Mar 2018 01:41:01 -0700 (PDT) In-Reply-To: <87370ryyxh.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::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:223944 Archived-At: On 23 March 2018 at 04:32, Robert Pluim wrote: > Allen Li writes: > >> That's because hour is not a time unit. hr is a time unit: Ah, thanks, I was unaware of this. >> 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. Right, but it would be reasonable to unify the time units with dates. If someone is looking for an elisp task...