From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.help Subject: Re: git-like parsing of date strings Date: Mon, 27 Mar 2023 11:43:40 -0400 Message-ID: References: <831qla9tmm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25159"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 27 17:44:38 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgp1S-0006KA-B7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Mar 2023 17:44:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgp0n-00059S-QF; Mon, 27 Mar 2023 11:43:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgp0m-00057r-73 for help-gnu-emacs@gnu.org; Mon, 27 Mar 2023 11:43:56 -0400 Original-Received: from mail-ed1-f42.google.com ([209.85.208.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pgp0k-0005Vp-KQ; Mon, 27 Mar 2023 11:43:55 -0400 Original-Received: by mail-ed1-f42.google.com with SMTP id h8so37994136ede.8; Mon, 27 Mar 2023 08:43:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679931832; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=38Oky85tWK3rjVeCPg0bOCUJVMSqm1WcyEM+AB9gObI=; b=EOHAPg/3Nwqg97+Gm9FdfNYnHrox1Wfx6dj2CozOQS6lmeQaglsU+Yr2w2ksmWJNTl NOffvZKjo5IJU8L+eLGKeA7LzlNby/nmXgInOcSgiYASuq+scbClvLIdj3S7csA4k3nc zVQWfNRjmYh+C3MCwnwE2m/0JOez1u1wc5oa0cfSCxNXoCfrm5hWfgS98p0DggUCZoon xflLtfpnSqy3x0aIxfiLnX/T8fOiIs7SMOVpnEt6GQHSXDgSzPiqYTewuNFsJmxQUVjK jos1DCPyQtfahQy5wQBLaugL92FoEFXs6L50dKuI/KdCnAqIzWSnqh3LQFTTJ2gFFaIV 27GQ== X-Gm-Message-State: AAQBX9cEf4OniFKgwQflewH1F2H2VoC93Skxi46TX9lExooSxzqwvHYL PDkArK+OJZlLnkVCfi682eGiwZDgA0gu+LbE97Uf71MYHb4= X-Google-Smtp-Source: AKy350bjjOmVh5Vdya3gEIUtu4mtwe1eoghLl9roBF/oRCyAF61GLlWgmbuRgslAdupJSlf2qVg/ggiDkQ3JiSZYNwM= X-Received: by 2002:a17:907:80a:b0:8af:43c6:10c0 with SMTP id wv10-20020a170907080a00b008af43c610c0mr7616671ejb.1.1679931832301; Mon, 27 Mar 2023 08:43:52 -0700 (PDT) In-Reply-To: <831qla9tmm.fsf@gnu.org> Received-SPF: pass client-ip=209.85.208.42; envelope-from=john.yates.sheets@gmail.com; helo=mail-ed1-f42.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143131 Archived-At: On Mon, Mar 27, 2023 at 10:06=E2=80=AFAM Eli Zaretskii 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). Maybe something like: https://github.com/thatguystone/approxidate