From: Eli Zaretskii <eliz@gnu.org>
To: rjhwelsh+emacs@posteo.net
Cc: 40861@debbugs.gnu.org
Subject: bug#40861: 26.3; parse-time-string does not intepret times
Date: Sun, 26 Apr 2020 17:05:33 +0300 [thread overview]
Message-ID: <83368q736a.fsf@gnu.org> (raw)
In-Reply-To: <ptpk1221xv8.fsf@posteo.net> (rjhwelsh+emacs@posteo.net)
> From: rjhwelsh+emacs@posteo.net
> Date: Sun, 26 Apr 2020 19:59:07 +1200
>
> ;; parse-time.el
> (parse-time-string "14:00")
> (nil nil nil nil nil nil nil nil nil)
In Emacs 27 this produces
(0 0 14 nil nil nil nil -1 nil)
which I think is reasonable.
> ;; Provided examples from the manual
> (parse-time-string "Fri, 25 Mar 2016 16:24:56 +0100")
> (nil nil nil 25 3 2016 5 nil nil)
This produces
(56 24 16 25 3 2016 5 -1 3600)
with Emacs 27.
> (parse-time-string "1998-09-12T12:21:54-0200")
> (nil nil nil nil nil nil nil nil nil)
I get
(nil nil nil nil nil nil nil -1 nil)
So I think this is already fixed in the development sources, and you
are advised to upgrade to Emacs 27 (its pretest is available from
alpha.gnu.org).
Thanks.
next prev parent reply other threads:[~2020-04-26 14:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 7:59 bug#40861: 26.3; parse-time-string does not intepret times rjhwelsh+emacs
2020-04-26 14:05 ` Eli Zaretskii [this message]
2020-04-27 7:01 ` Stefan Kangas
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=83368q736a.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=40861@debbugs.gnu.org \
--cc=rjhwelsh+emacs@posteo.net \
/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).