emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calc; Cannot add time units to date


From: Noam Postavsky
Subject: Re: Calc; Cannot add time units to date
Date: Fri, 23 Mar 2018 04:41:01 -0400

On 23 March 2018 at 04:32, Robert Pluim <address@hidden> wrote:
> Allen Li <address@hidden> 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...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]