From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yK8dEJPdQGAqAwAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 13:16:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mFXyC5PdQGCMKAAA1q6Kng (envelope-from ) for ; Thu, 04 Mar 2021 13:16:03 +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 606FC2264D for ; Thu, 4 Mar 2021 14:16:02 +0100 (CET) Received: from localhost ([::1]:57654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHnpg-0007aQ-72 for larch@yhetil.org; Thu, 04 Mar 2021 08:16:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHmbp-0008I5-HR for emacs-orgmode@gnu.org; Thu, 04 Mar 2021 06:57:37 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:52878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHmbn-0005ym-CB for emacs-orgmode@gnu.org; Thu, 04 Mar 2021 06:57:37 -0500 Received: by mail-wm1-x336.google.com with SMTP id n22so7791189wmc.2 for ; Thu, 04 Mar 2021 03:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gm.uca.es; s=personal; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=021XGZCbgBJiDCJLQqKG8N4uwcPt0i10MnAo2YD5ctA=; b=IF3dp4u3/LA0euIRGwwVF5KVwght55umqgppLfbfCmel9GSjjSi/g9QR2nf6q/cBHV BuepppbOFavi8QvZHbTVs9x+niU9tglxq3fgQJSnan9WO/etLiG4o9AJGbomzp/nNfQP q5T66cik7LK7R9xh0uxNRh5ffVmBCXAhw6q54= 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:date:in-reply-to :message-id:user-agent:mime-version; bh=021XGZCbgBJiDCJLQqKG8N4uwcPt0i10MnAo2YD5ctA=; b=CH0ob6EsM6Smu6hm8AKozriM3+/3yFPmeMbsO8dwiO7/utMBLW5gyEU0a3sStdN1Rp aAd4BYEOPR7I/0y2pa8GUSP13CqJCX/g7FtD8rEZgzhwQ81Y32o/dy9jQIR2IxltXS1Z qp5HnVw8tKlHEk0pYzl9W1NxmXtcMDJQQimfATAnQe8aQDiOxfv83yDR9Zf/jIa+afJH PjoZcXCwo0GDI1ckV2r/Vy5hbnD/E+bqeu8wAX6oDw1S4Pa5Nrr6TkvKaQDoVfnKv0Em s5Jb9NILJ1cYaqavHVRo4U2z1TzARtgBXRtcRX4odgZH3bXfKZjuAQ5VOrr6tJPfv/rX psOA== X-Gm-Message-State: AOAM5337jQuPXirwvoEaoAh6tRhkv77vw2Gr0mzT1n25VSj6f+WVLQsB L1S3q2SqtBSEBdzIaiNIXOqyf8XFdR/aQPWy X-Google-Smtp-Source: ABdhPJxJLbcwqWUSIDpcopi6nJrpQ6Otg1EGpTk2pN6ZKQp3x4saR4WhvGIJ3GNv88Tkukb23mTzQQ== X-Received: by 2002:a7b:c055:: with SMTP id u21mr3702463wmc.68.1614859052424; Thu, 04 Mar 2021 03:57:32 -0800 (PST) Received: from PCBIOMED11 (ucaip142.uca.es. [150.214.75.142]) by smtp.gmail.com with ESMTPSA id w16sm22938163wrk.41.2021.03.04.03.57.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Mar 2021 03:57:32 -0800 (PST) From: Alberto AP X-Google-Original-From: Alberto AP To: emacs-orgmode@gnu.org Subject: Re: org-capture-templates: %date is too long References: <87wnunz30x.fsf@mat.ucm.es> Date: Thu, 04 Mar 2021 12:57:30 +0100 In-Reply-To: <87wnunz30x.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 04 Mar 2021 10:22:54 +0100") Message-ID: <87ft1byvv9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alberto.arias@gm.uca.es; helo=mail-wm1-x336.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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-Mailman-Approved-At: Thu, 04 Mar 2021 08:14:54 -0500 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=1614863763; 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=021XGZCbgBJiDCJLQqKG8N4uwcPt0i10MnAo2YD5ctA=; b=GLI4mJg6I77KvJmZZlKAtPgSfHNSAQ2PkBtM6Hsyt/PasVL7fQwL0dhwrU3wjhmcCvi44G X/GUIw2/ARXCTfhSHLNK5JxJJOE+8kicZENUY3Xm2kKzgABXOcd7dPW5pM+/Ck++6NPItE 2Pa2uBeOUQakuoxGMCElHn5hZ6Xjx767IaliPjMKry2dZMMI2TXgmBTlm4GwY8q/+PIcCc JcuAbvGg1kwqBeqcQKsTL1mCbOO2vNuQiWWrLjzSHUOxA4C+H2EUzo9oLZmYbs/R/5l1X4 dY9ltPZb3rgbq7owIr/mPN6CNGyM75Bs5ii39imqwvFATMFjuNQvWihjPobCqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614863763; a=rsa-sha256; cv=none; b=aMmdLHiVqlUxnGYOQEX0vm2d1Ql34y6myJEFamlEjGsBFjgSUGZEeB7Jq8qBB/FH05HsOY zgNsmIAtoP3fcerRIDni2gKj4KhEcn9ifFhriaClqT5COCXZx63TU4GlkuhTOyxxPy2ucI r9F/WxRlp2iytaG7qlN4sDuTElYBO3ahbVmHvNkyQDD6CtvUb6qABZilhstrgg4M8zNS9x Z9v3JRvREa7XNB6MicFXE5Q3J2O6h9yam8sDURNvMuwioKmFxBGdx+KQEQfiVimhPCM5MX ub7R3RuDeHjmjL7jYZP5lV34FyBJ2d0Fnr5p7E+0F2hYmJtYinTCnkcmDITxRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gm.uca.es header.s=personal header.b=IF3dp4u3; dmarc=none; 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: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gm.uca.es header.s=personal header.b=IF3dp4u3; dmarc=none; 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: 606FC2264D X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: A/dpD6Bu6c3B Hi What I use is the result of format-time-string (as explained in the Org Capture Templates help; check also the help for the format-time-string function). The string I use is: %<%Y%m%d-T%H%M%S> It gives me, for example, 20210304-T095526. If you don't want the hour just remove "-T%H%M%S" Best, Alberto Uwe Brauer writes: > Hi > > I try to add a new entry to my org-capture-templates > for mails what I read via gnus. I'd like to have a timestamp that > reflects when the message was received, not when the entry was created > (for that I would to have to use %t) > > Now I have set > > "| | %:fromname|%:fromaddress|%^{Sheet|1|2|3|4|5|6|7|8|9} | %:date |[ ] | | %a " :prepend t) > > Using the description of the org-capture-template > > ------------------------+------------------------------------------------------ > gnus | %:from %:fromname %:fromaddress > | %:to %:toname %:toaddress > | %:fromto (either "to NAME" or "from NAME") > | %:date %:date-timestamp (as active timestamp) > | %:date-timestamp-inactive (as inactive timestamp) > gnus | %:group, for messages also all email fields > > The problem is this results in > > | Number | name | email | sheet | date | status | > | | John Doe | footbar@gmail.com | 2 | Tue, 2 Mar 2021 19:35:03 +0100 | [ ] | > > I don't need the hour, and for sure I don't need +0100 > > Any idea how to shorten that? > > regards > > Uwe Brauer