From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MOvlHBIUQWASOgAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 17:08:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qKTHGBIUQWCbRAAA1q6Kng (envelope-from ) for ; Thu, 04 Mar 2021 17:08:34 +0000 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 A6C6F1C639 for ; Thu, 4 Mar 2021 18:08:33 +0100 (CET) Received: from localhost ([::1]:47952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHrSi-0007Pd-Fg for larch@yhetil.org; Thu, 04 Mar 2021 12:08:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHrRI-0007OC-8W for emacs-orgmode@gnu.org; Thu, 04 Mar 2021 12:07:04 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:44819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHrRG-0004nE-Lq for emacs-orgmode@gnu.org; Thu, 04 Mar 2021 12:07:03 -0500 Received: by mail-wr1-x433.google.com with SMTP id h98so28431304wrh.11 for ; Thu, 04 Mar 2021 09:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=AdNJfKMAgEipGgpv8R3UynzRqUD/G0ALgXiVJyXAn/0=; b=GBWQCYbkK3z2pZiZa43Wst3ZbTJdLuNqW+p96koD+S0lg06vz8uETuvHrSvC52yFjX xkPl6cQKDX21kIpMoHRz/XCxXR5WKYfM1QXKsjRO12VojsCd/oFN2Y5ogLsg9DLhjLR5 Z5pLwwlPI4mVXEMYiEt87riAk5YPJjDTzYn/oJkTeAis5ks9gGK78y4KvH386l5nJnd8 TgZeJNc8woawJhtwCkIQPDGY2PWEwlJRinBpeYG1vz+wqps/GT5nt2PrGOVNvbOjmmtP s0IYS9dYy47MZXlNu9K+WUKNjGeEsE8DZpZDNAmgh5ey5VbCzjlsRkaU00SyxLBkZehU 3yVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=AdNJfKMAgEipGgpv8R3UynzRqUD/G0ALgXiVJyXAn/0=; b=DSvmPIdTK5g1HIY2FECQr2Xms7pE+Y4tNnY1I/zE9f0gSpNa03a3NrrDInA0kkZ8+R KQrvAl/9uw0cUFKbZXXDLo7IJRlNGAnxGwpIqacmHg9mNlJO03lijWW8ri5awRH3pY7F fVut6qxMk0j+Pag4za1IzuXaUssEIHwUNYVwnkzMpwfg9kGizpPpfa1+lJ5dgiCRWUYY npMWTJdp87e33i8dbhVlx2f0fM7uFjbdaexf9uEtrmWeZUJG9Cf493l5Tev6u9xEOBbN Se2JRNhMtUMqpNlZcCtNVKYQh4HEInwDqCwzQh5o647/uT3Tee2AYEiySKlZNWe+TNUL z4xQ== X-Gm-Message-State: AOAM53334WiaFwTNsrjokWhEXXO2slYGH3Swk2wG+GLHNnb/CtfX0iw7 zw0Y70o5Su0QkzuejQXiPCTyAlb8ijjrBg== X-Google-Smtp-Source: ABdhPJxTGWhTUTcwNlQRn1kuWhOn4en2ho3AtxjP69sB3oU5xCAY2lZtx0mYQ50zVoZQY+q3/9E+vw== X-Received: by 2002:a5d:65d2:: with SMTP id e18mr5150042wrw.148.1614877620445; Thu, 04 Mar 2021 09:07:00 -0800 (PST) Received: from rltb (91-175-207-237.subs.proxad.net. [91.175.207.237]) by smtp.gmail.com with ESMTPSA id w25sm44472wmc.42.2021.03.04.09.06.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 09:06:59 -0800 (PST) From: Robert Pluim To: emacs-orgmode@gnu.org Subject: Re: org-capture-templates: %date is too long References: <87wnunz30x.fsf@mat.ucm.es> <87ft1byvv9.fsf@gmail.com> <87czwfyp5u.fsf@mat.ucm.es> Gmane-Reply-To-List: yes Date: Thu, 04 Mar 2021 18:06:59 +0100 In-Reply-To: <87czwfyp5u.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 04 Mar 2021 15:22:21 +0100") Message-ID: <87h7lqu9u4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=rpluim@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614877713; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=AdNJfKMAgEipGgpv8R3UynzRqUD/G0ALgXiVJyXAn/0=; b=FRH6kII+TWfqp7Qu2B1BuDnfH5EabaPIQoKNqEaR1d/1fQVFiKEtZBbRnEisF7xx16ZzP4 K2fHH015Bj/GO6jtdeVxDGnECZrbooSXtLnhaEg3QJPaqYD4rw0bcnwpaGhq5R9UWpPL+v rv+sg8VNUsQ1X4U7V8K55kX0VuZY3fPDWg6GYhVTBU6/uh+ZZ+IBrVYe7D9Icsq01muQko nI11Hdsp3vTf2KetNIxkf07RLbdgJP5xw3IgQjax8+EsCUW7htfCwz5F71Wi/4xVUDEuQy +34/3aoii0XLEUijKNdZOr+mYa84XQ31iR25eO2sLjZ6eGGLdL57XOIpsFfTAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614877713; a=rsa-sha256; cv=none; b=un5h8kY4rylBN/dGdcQ1PKVU1F+1swOzl8580ojuRI+t3WVFFWWby5/IukHI/+t30hud6o B1CVJKACPyytbiw6Dq0rwOQWJf38VLdVKLYe3APheQ1wjg0VoHza46S+yofxL2t7C65wmf BjVz/bxgyIhbWUJ2VbnNidJ94pgT+49FtuL3gAjlD9X5fBp7JRh8NGzbz8uTHMq3B3yWDK oxU4KXLQSwUVKKCIgEX60CQJqHOwV92HxRi1P/oYvHTJZHzJIoeirnMBHLfmNbvOER1zZQ syJARkbNervkz/05Mb1Xp8iTRDI9BINfpMZ3M/qPRJA98eZfskodpKkmGt6FdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=GBWQCYbk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=GBWQCYbk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A6C6F1C639 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: arw+cqNu/8sR >>>>> On Thu, 04 Mar 2021 15:22:21 +0100, Uwe Brauer said: Uwe> Sorry, you misunderstood me, this time string, inserts the time string, Uwe> when I execute the capture, but I want to extract the time string, when Uwe> the message was received. This is why I used Uwe> %:date Uwe> in my first attempt, that works but inserts Uwe> Tue, 2 Mar 2021 19:35:03 +0100 Uwe> Which I find way too long. Uwe> Just Uwe> Tue, 2 Mar 2021 Uwe> Would be fine or 02.03.2021 Uwe> But not the hour, seconds etc It looks like the %:date handling respects the 'org-time-stamp-formats' variable, so if you can arrange for that to be let-bound appropriately during the capture process, it might do the right thing. Robert --