From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id wFlfE6tiRWQFIwAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 23 Apr 2023 18:54:03 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id 8M9KE6tiRWT/ZAAA9RJhRA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 23 Apr 2023 18:54:03 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 109BB5A11
	for <larch@yhetil.org>; Sun, 23 Apr 2023 18:54:03 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1pqbGt-0007NY-U1; Sun, 23 Apr 2023 11:04:59 -0400
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 <yantar92@posteo.net>)
 id 1pqbGq-0007Kt-JB
 for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 11:04:57 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1pqbGo-0000lH-R4
 for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 11:04:56 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 070E624015F
 for <emacs-orgmode@gnu.org>; Sun, 23 Apr 2023 17:04:53 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1682262293; bh=gDQA2DrbDai22oaFmyOoDps970a6EflOnnCFjlqsHyA=;
 h=From:To:Cc:Subject:Date:From;
 b=qj/5gtwjMshgEcrwRUYPtECGSEG60d36oj/3Gwiry/66EK+7M6fNoQVyEr6r3KG1C
 lTlLAjkADmcpidbwXOig9HL12/BxZT+6/wyqRTqssUqv19EF9xonDYCyLNN0EN/4Lt
 Fge/e5fJlJrhkirw53Nf65PzkLcbFJ4raoZyxHEirRIFvGYZ5tVH4hgEFl2rcC4wnM
 iHLdmVU+wUnz2Q3x/28Cx1XHRrtEHOlDEGrALnOH23mTkwmeJcNcxBJYfdF+vRQfut
 bccpbJpO/IgqwpxxvvwzN1gZtkKLdyKOz92atvL3vYULoLK6vPZLBvwX49lnXKQ8xO
 Hzl8gtkMM11zg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Q4BPw4jcrz9rxH;
 Sun, 23 Apr 2023 17:04:52 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Ruijie Yu <ruijie@netyu.xyz>
Cc: Axel Kielhorn <org-mode@axelkielhorn.de>, emacs-orgmode@gnu.org
Subject: Re: [DRAFT PATCH v4] Decouple LANG= and testing (was: Test failure
 due to LANG)
In-Reply-To: <sdvbkjer8c3.fsf@netyu.xyz>
References: <D140FA73-9995-4467-963E-00D5964485C0@axelkielhorn.de>
 <sdvzg70utif.fsf@netyu.xyz> <sdvv8housn7.fsf@netyu.xyz>
 <sdvmt30um3h.fsf@netyu.xyz> <sdvedocukz1.fsf@netyu.xyz>
 <32E3D56A-9DDF-4D70-BBA6-2DB71919EC98@axelkielhorn.de>
 <sdvy1mkt0vw.fsf@netyu.xyz> <sdvh6t7tlmw.fsf@netyu.xyz>
 <37BA8B13-A49D-41A4-B752-4ED9540D5799@axelkielhorn.de>
 <sdvo7nfrs7p.fsf@netyu.xyz> <871qkau9t6.fsf@localhost>
 <sdvbkjer8c3.fsf@netyu.xyz>
Date: Sun, 23 Apr 2023 15:07:44 +0000
Message-ID: <874jp64oxr.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682268843; a=rsa-sha256; cv=none;
	b=MV4SplLHmuWf5stfIAbANMdJXeiJU2+mTLO3tTcyCvVJeHn+HvmSHwBe7GjefOqUbQ9vcV
	ElNCFnPj8XEgP1JN9fL7F0wJRPVtpk7RZzg8liUdSjpkF4oNrQwnbqijVtU24C3zIv/rza
	lTaU0gRtEmAZe6rAVQJTkFgwwp5lj0ZTjBhqeYx6OuVCi5l2iZxbzJkQgyQbk5Lzgsa753
	6vQSfeTCAWviUDLgC9S/3n45XYMstQLSDq51M/Eq4i78uNYxFYWn0oUnSmaCWESIkBk8+b
	pwMmriKu0o0dLyOtg1TSnkGBbOJGrnrKoukp0CaArs2d46Svn1TmKZTX9dlkDw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b="qj/5gtwj";
	dmarc=pass (policy=none) header.from=posteo.net;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1682268843;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=2S6nt/2In1nFTUDFYxs2zbrhtE/c3qrfS+rYxL+xNIM=;
	b=mYEPgzvYNhcZ0/+dDAE56uQABFJaDuNRwGL+RVffOaRTkZIOdoTy0yiHoyh3too6gXCJ5Y
	4EHxis4RIjhhF8Tk2WiNcEAtNg2K5kbs7O+gGP87mSGo4uyzXTeak2WzGdLqg7NUfOlz/A
	RYVDcBvxFTduHDik2aTZzkj1+XPIepgEqhbA6z0hg2xBENAmlis2Ef88Ub+WbU4pqCGs6O
	1V2Qf9Bgyr7+FwSJ6iXDB5dvqNfunl8xjdzh9P8cYfmoOJhp07m48llLTxvfTTIPROl1Cd
	n3uKyqXlV9gtkM2UucXyr1O6flRVtRNe2GrH53uuz1Cu9oxQXaN5Y+3TwG3Yjg==
X-Migadu-Scanner: scn1.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b="qj/5gtwj";
	dmarc=pass (policy=none) header.from=posteo.net;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -6.20
X-Spam-Score: -6.20
X-Migadu-Queue-Id: 109BB5A11
X-TUID: RX0+ynpUJ2JY

Ruijie Yu <ruijie@netyu.xyz> writes:

>> I recommend `org-element-timestamp-parser' for analysis.
>
> Thanks for pointing that out!  I didn't realize it was there.  Although,
> I don't think I can use this function as-is, nor its internal regexps:
> all the relevant tests where I used `org-test-timestamp-regexp' tried to
> remove the day-of-week part.  So I would need to know the region for the
> day-of-week portion.  At the moment, I can't think of anything other
> than making a group for DoW, and removing wrapping `save-match-data' in
> `org-element-timestamp-parser' -- which is why I had those convoluted
> group numbers in my `org-test-timestamp-regexp' for all portions that
> one may ever want to use, hoping that nobody goes beyond defining 100
> groups.

(let ((org-time-stamp-formats '("%Y-%m-%d" . "%Y-%m-%d %H:%M")))
     (org-element-timestamp-interpreter timestamp nil))

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>