all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: git-like parsing of date strings
Date: Mon, 27 Mar 2023 23:49:59 +0000	[thread overview]
Message-ID: <87v8ilsqjc.fsf@vagabond.tim-landscheidt.de> (raw)
In-Reply-To: 83y1ni89op.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> wrote:

>> > Try the functions in lisp/calendar/parse-time.el.

>> parse-time appears to handle only absolute dates.

>> I need support for relative dates (e.g. yesterday, 3 days ago, etc).

> Your OP never said anything about relative dates.

> I don't think something like that exists in Emacs.

Relative dates can be parsed by org-read-date, but the syn-
tax is not very Git-like.  (For the latter, one can always
resort to `git rev-parse --since='3 weeks 2 days ago'` and
then parse the output.)

Tim




  reply	other threads:[~2023-03-27 23:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 14:00 git-like parsing of date strings John Yates
2023-03-27 14:05 ` Eli Zaretskii
2023-03-27 15:43   ` John Yates
2023-03-27 16:01     ` Eli Zaretskii
2023-03-27 23:49       ` Tim Landscheidt [this message]
2023-03-28 11:04         ` John Yates
2023-03-28 13:31           ` Tim Landscheidt

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=87v8ilsqjc.fsf@vagabond.tim-landscheidt.de \
    --to=tim@tim-landscheidt.de \
    --cc=help-gnu-emacs@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 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.