From: Ihor Radchenko <yantar92@gmail.com>
To: Tim Landscheidt <tim@tim-landscheidt.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Testing if a scheduled date is prior to another date
Date: Mon, 30 Aug 2021 22:59:27 +0800 [thread overview]
Message-ID: <877dg3nflc.fsf@localhost> (raw)
In-Reply-To: <87a6l9ehl1.fsf@vagabond.tim-landscheidt.de>
Tim Landscheidt <tim@tim-landscheidt.de> writes:
> Before I wade through the various functions to build a con-
> version chain, what is the best practice to compare time-
> stamp values with dates? (And if there is an org-mode func-
> tion that checks if the task at point is scheduled prior to
> another date, I'd appreciate pointers as well :-).)
You can try org-parse-time-string + org-element-timestamp-interpreter
from org.
Alternatively, you can use external 'ts library: ts-parse-org-element
Best,
Ihor
prev parent reply other threads:[~2021-08-30 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 13:26 Testing if a scheduled date is prior to another date Tim Landscheidt
2021-08-30 14:59 ` Ihor Radchenko [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dg3nflc.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tim@tim-landscheidt.de \
/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.