help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git-like parsing of date strings


From: Tim Landscheidt
Subject: Re: git-like parsing of date strings
Date: Mon, 27 Mar 2023 23:49:59 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]