A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00701.html below:

Re: Calc; Cannot add time units to date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Allen Li Subject: Re: Calc; Cannot add time units to date Date: Thu, 22 Mar 2018 13:47:43 -0700
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.)

On Thu, Mar 22, 2018 at 1:16 PM, Noam Postavsky <address@hidden> wrote:
> On 22 March 2018 at 13:38, Allen Li <address@hidden> wrote:
>> On Thu, Mar 22, 2018 at 2:36 AM, Robert Pluim <address@hidden> wrote:
>>>
>>> Hmm, Iʼm not convinced thatʼs 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 view.
>
> 1.5hr + 1.5hour doesn't add together either.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4