emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Timestamp and timestamp range definitions
@ 2023-02-13  7:21 Ilya Chernyshov
  2023-02-15 15:10 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Chernyshov @ 2023-02-13  7:21 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-17 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13  7:21 Timestamp and timestamp range definitions Ilya Chernyshov
2023-02-15 15:10 ` Ihor Radchenko
2023-02-16 18:55   ` Ilya Chernyshov
2023-02-17 11:10     ` Ihor Radchenko

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).