From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gH3IEbpXE2OPagEAbAwnHQ (envelope-from ) for ; Sat, 03 Sep 2022 15:33:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0EDJEbpXE2O2CwEA9RJhRA (envelope-from ) for ; Sat, 03 Sep 2022 15:33:46 +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 53F2AF718 for ; Sat, 3 Sep 2022 15:33:43 +0200 (CEST) Received: from localhost ([::1]:51658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUTHJ-00065Q-Jp for larch@yhetil.org; Sat, 03 Sep 2022 09:33:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUTEu-0004KP-Gt for emacs-orgmode@gnu.org; Sat, 03 Sep 2022 09:31:14 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:33576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUTEs-0000ye-JI for emacs-orgmode@gnu.org; Sat, 03 Sep 2022 09:31:12 -0400 Received: by mail-pf1-x431.google.com with SMTP id y29so4562211pfq.0 for ; Sat, 03 Sep 2022 06:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=/4huJdtFsTo/42KPKe8GCMeJcc8kOI0EhGFkwY67GuY=; b=GqV5kV6EEnHV1GGCn1K2b2B+YOlvFXqjPjkgk+NfNc6Ozu5VUULl/+HYyIeaFvvYAy eLctcXbAT/w0svUYXNXww3HWDV3U7580d/39KTOwNS9xgVEkRVJglg6cRppYV48jctGH 91tvxpABOfkpSl16jlydubECurmWrUJiQlSQlQXAy+guJThN88yRU4gzUceeVkBd3c9J AB06qK4tZUZ4/ivCX6M1Lv9DWqRx4JUGvnw9UK13uVKVBWwODawiw/VrjIZ+JAWpuxlR boqJLeCvJpTKT+j44/i7DnIxo54cKg+L3POvBz/mijNCT8ZfzKWtD+vHKc/ghcNaYTXP XKNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=/4huJdtFsTo/42KPKe8GCMeJcc8kOI0EhGFkwY67GuY=; b=gxHcHWvcadBBFVfFjRAUw/YBiKmw1eCoYt9QiGi6PxAXP5hKliXdNvw/mpY6A8R/tG Lv+RO8m5vTnSLXGcY7iQI4wIhwU9k/lzNTtfn/zMqpfP972VNHu4G/x/l5f3/gAuOVWe IQImOGNewOXhKECMyoeCT55Cro5mV7ErZqu9mD3s2a1+4rJpP0E8WUPLk2nEruzcjrG1 93ZjBcnqDwStj67TCK1wwDv0V3p6jdrN9MAUswJLNG1uMuXPsZNo2MZZmWM3odLllWpH C7xj41PkDTWczAnLu3DvjHP5UfPUFiVymrkJ4uRN2WX7Ap98QQhYTYFCpGPkThYxSa4S gSzQ== X-Gm-Message-State: ACgBeo3FzxOxGT/d8+mLNF9lrhyzBUYJbXG2rL+l34EKOZi7yTDlUPkF ZtKuX5rwutFTrTu6rb6LxTnwolepTphH2A== X-Google-Smtp-Source: AA6agR7Y3H3zaCs6fL1u5gtlbuKZB4fI3m+mAk0AwML/ofEYuvhBCqAPpwQqfVOWvdIxil1EjRa0AQ== X-Received: by 2002:a62:170b:0:b0:53b:93dc:966b with SMTP id 11-20020a62170b000000b0053b93dc966bmr1356937pfx.29.1662211868288; Sat, 03 Sep 2022 06:31:08 -0700 (PDT) Received: from localhost ([2409:8a70:2b2:5800:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id l5-20020a170903244500b001751c61d3b8sm3662504pls.211.2022.09.03.06.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 06:31:07 -0700 (PDT) From: Ihor Radchenko To: tomas@tuxteam.de Cc: emacs-orgmode@gnu.org Subject: Re: org-time-stamp-custom-formats with out the name of the day of the week In-Reply-To: References: <8735dc1k0x.fsf@mat.ucm.es> <878rn3o98n.fsf@localhost> <87y1v3ayar.fsf@mat.ucm.es> <87czcelyk8.fsf@localhost> <87tu5p9afv.fsf@mat.ucm.es> <877d2lnbnv.fsf@localhost> Date: Sat, 03 Sep 2022 21:31:48 +0800 Message-ID: <874jxo60u3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662212023; 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=/4huJdtFsTo/42KPKe8GCMeJcc8kOI0EhGFkwY67GuY=; b=k/6H714h4rssTUf9uWWHPez9R5+4knp+GN/NYB1dPPbXTcEoLWmmbhxG6LtlGJduUZFDcb 6I5KwXW864eRUvmd5DxAN3BHoHTuYsQKgin7sGV43woGweqNj9zrPqQ9zzALKG+BB7u/wn SJAPtw0kStG+hw5vwBLgy9gwqr/QvQm3zTq0VEt/8EXgoOEEmE1k3yu1zeGghw4kIwkBZD IVl1FYEEz5sddKvl5o6we90vt/W0yP1CY2RVDE0UCi2GI8GKXQ9gOO9wWDhUABQmyJYOhQ xm97SrjZbxml/nP+aMGGcgtLnriIaxMKWBbG1BF5O4fUXDthFIVHUmLunqnlBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662212023; a=rsa-sha256; cv=none; b=OJh6PRmCRga6aQ9A5amtgYnYMoVzDZxZmE/kqE1URx0I9QmSZFC/lrWMxgG8fBDyRa3XeH pMGgSIwtfMVEGhB8VbdA4gcKqWiKCnk6/l+tvGeyGnjmS7wP5pduOEO00UDJ1nx+lzcpRH kr1KkXFawKrruIq8N5Y9nDVNROzzDXcjIFYQrzhFjhtctem7uvI+2wGKXg4ojRDN5CMKtD nk9v5L8yG90m8pWASeZy3CowbXW7JdB0zC7Ls7UwaZs+jhj6FMolCM+7mtwH2UiiQwUf3Q qFMyKRiOW/Y4muA8ocwVC1lmKbONlPt07HEb5rqTY7scfs7OL50Ae8D2aT5RZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GqV5kV6E; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GqV5kV6E; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: 53F2AF718 X-Spam-Score: -4.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: kBjf8BdvYn1L writes: >> This cannot currently be customized. However, you can change >> org-time-stamp-formats constant. Removing the %a should be safe. > > FWIW, I have this in an (eval-after-load 'org ...) > > (setq org-time-stamp-formats > '("<%Y-%m-%d>" ."<%Y-%m-%d %H:%M>")) > > since years (> 5) and haven't observed any side effects. But then > I don't meet every nook and cranny of org (I bow in awe to those > who meet half of them :-) This only works because you changed org-time-stamp-formats in one of the few safe ways. Org declares org-time-stamp-formats and Org code treats its value as a constant making various kinds of unsafe assumptions that can break things if the value of org-time-stamp-formats is changed. For example, it is assumed that first/last characters are triangular brackets; it is assumed that the output can be parsed using parse-time-string; it is assumed that 1..11 substring in the format contains a full date; it is assumed that the formatted output conforms to timestamp syntax; etc. -- Ihor Radchenko, 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