unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Allen Li <darkfeline@felesatra.moe>
Subject: Re: Calc; Cannot add time units to date
Date: Fri, 23 Mar 2018 04:41:01 -0400	[thread overview]
Message-ID: <CAM-tV-87dgkZ+AZcNqL891zVT5yZyqXgdTnfx7MJ0JwVL18Ezw@mail.gmail.com> (raw)
In-Reply-To: <87370ryyxh.fsf@gmail.com>

On 23 March 2018 at 04:32, Robert Pluim <rpluim@gmail.com> wrote:
> Allen Li <darkfeline@felesatra.moe> 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	other threads:[~2018-03-23  8:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22  8:36 Calc; Cannot add time units to date Allen Li
2018-03-22  9:36 ` Robert Pluim
2018-03-22 17:38   ` Allen Li
2018-03-22 20:16     ` Noam Postavsky
2018-03-22 20:47       ` Allen Li
2018-03-23  8:32         ` Robert Pluim
2018-03-23  8:41           ` Noam Postavsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-tV-87dgkZ+AZcNqL891zVT5yZyqXgdTnfx7MJ0JwVL18Ezw@mail.gmail.com \
    --to=npostavs@gmail.com \
    --cc=darkfeline@felesatra.moe \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).