all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
Cc: "Mattias Engdegård" <mattiase@acm.org>, 43759@debbugs.gnu.org
Subject: bug#43759: Emacs Calc date conversion
Date: Fri, 02 Oct 2020 16:22:24 +0200	[thread overview]
Message-ID: <87o8lkwvvj.fsf@gnus.org> (raw)
In-Reply-To: <PR3PR06MB68434775FF3968BA34A808CA84310@PR3PR06MB6843.eurprd06.prod.outlook.com> ("Vincent Belaïche"'s message of "Fri, 2 Oct 2020 10:53:59 +0000")

Vincent Belaïche <vincent.b.1@hotmail.fr> writes:

> I do the following expériment under Emacs CC
>
> ;; Set date format as Unix
> dd U RET
> ;; Enter 1991-01-09T06:00 in Unix format, cf. date -d '1991-01-09T06:00+00'
> '+%s'
> ' <663400800> RET
> ;; Set format as ISO
> dd YYYY-MM-DD HH:mm:SS RET
>
> Then the display is <1991-01-10 06:00>, but I expected the 9th and not
> the 10th of January.

I wondered whether this somehow had also been fixed by Mattias' recent
calc change to business days, but it hasn't -- I'm able to reproduce it
with the current trunk.

This is another off-by-one-day bug, though, so perhaps it's related to
the same change from a few years ago that changed day zero?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-10-02 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 10:53 bug#43759: Emacs Calc date conversion Vincent Belaïche
2020-10-02 14:22 ` Lars Ingebrigtsen [this message]
2020-10-02 17:31   ` Mattias Engdegård
2020-10-02 20:13     ` Vincent Belaïche
2020-10-02 20:27       ` Mattias Engdegård

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

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

  git send-email \
    --in-reply-to=87o8lkwvvj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=43759@debbugs.gnu.org \
    --cc=mattiase@acm.org \
    --cc=vincent.b.1@hotmail.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.