From: Ilya Chernyshov <ichernyshovvv@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Timestamp and timestamp range definitions
Date: Mon, 13 Feb 2023 14:21:35 +0700 [thread overview]
Message-ID: <87zg9ido76.fsf@gmail.com> (raw)
Hello
What's a type of timestamp <2022-10-15 Sat 10:00-13:00>?
From org-manual:
the definition for a timestamp is:
A timestamp is a specification of a date (possibly with a time or
a range of times) in a
special format, either '<2003-09-16 Tue>' or '<2003-09-16 Tue
09:39>'
or ‘<2003-09-16 Tue 12:00-12:30>'
Also, the definition for timestamp range is:
Two timestamps connected by '--' denote a range. The headline is
shown on
the first and last day of the range, and on any dates that are
displayed and fall
in the range. Here is an example:
,* Meeting in Amsterdam
<2004-08-23 Mon>--<2004-08-26 Thu>
But, according to tests in test-org-element.el such a timestamp is
considered a timerange [added in commit cb32494e2]:
(should
(eq 'active-range
(org-test-with-temp-text "<2012-03-29 Thu 7:30-16:40>"
(org-element-property :type (org-element-context)))))
So, we either should change the behavior of
(org-element-timestamp-parser) or update the definitions of
timestamp
and timestamp range in org-manual. What do you think?
--
Best,
Ilya
next reply other threads:[~2023-02-13 7:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 7:21 Ilya Chernyshov [this message]
2023-02-15 15:10 ` Timestamp and timestamp range definitions Ihor Radchenko
2023-02-16 18:55 ` Ilya Chernyshov
2023-02-17 11:10 ` Ihor Radchenko
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg9ido76.fsf@gmail.com \
--to=ichernyshovvv@gmail.com \
--cc=emacs-orgmode@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/org-mode.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).