From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QPFrEgExYl+7LAAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 15:36:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gNI6DgExYl9FGQAAbx9fmQ (envelope-from ) for ; Wed, 16 Sep 2020 15:36:33 +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 A5A739404C8 for ; Wed, 16 Sep 2020 15:36:32 +0000 (UTC) Received: from localhost ([::1]:52556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIZTz-0007Dt-CU for larch@yhetil.org; Wed, 16 Sep 2020 11:36:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIZSe-0007D3-Er for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 11:35:09 -0400 Received: from mail-am6eur05on2102.outbound.protection.outlook.com ([40.107.22.102]:37857 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIZSb-0007uG-C3 for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 11:35:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ybd+xFHxA6fyKnBGclYBWq+C+iFeRBzszX6HTazbpvWSosScgsdveJmtRzuIyy7rmY2XHZpn/9wQz6iVzicu4Ck4PPGwBwnA2JVnzDLcJHAEFuL70+HHFCo8dXzCc0p5MYLIAncG4eM2x2xlkCrZh9lW3IDIhJj8mFU293kACKJ16tLZG8clvEnSNL03UOMtx0tf6fPe/lW9iDHIBNrC3eNwHHNsshoLdR+RlSefX0bV+o4KXdacEwqBkddfHy9NhA+/iQu/VZuFPiJFYUStQmAINmKXbqAgjT441f7tLNLpOvM5yXUv/jaFEqO0MeTVaITQXAO2mx2BK0ezlDVx9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fCpOzntZxZSt4G8f7gf/xshtUvyQ1vOXq1mmsmiveQM=; b=TVAdcX8sul/knJVEM53GvMgfjM4N9/Pz8gfBEkZufopdyqHteeuwKJCOPJd8ZzkB+62XBRq33o66xsz+pISvBFFLTWDYkhllq+vkoTCdhm9R/dVGqCvbEvwZ/3lEhE6e5WkKvmjV+9MtDvOJT7pxZkAvY/blKN1pNt9VWVDMOReFrN9eqsKHghUAv1KOnF4z4sdXQIk0p7uYj7NbFsgoYERcT591v/nnoQ8F3YWDSYU5ZXnvCWsCKXmJ83M7coTymToXbqxD/S4H5yM9bjDVnF+BG3yxFS4jTIzl9QXVA6Tadk7ehIPkDZ1MYgAee/tlQU/XQvbEsu/ugbA7GmrKfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liveuclac.onmicrosoft.com; s=selector2-liveuclac-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fCpOzntZxZSt4G8f7gf/xshtUvyQ1vOXq1mmsmiveQM=; b=RifScSL+ae8zeEl1d0/cBy7e32Nt0vDJKtqqDWfzTSEDiRJK5c52jRFuKBubaksebupF8PHtyEKHY0A+NMxTY2mCrvcx4/GtzdTaWc6qaB7TPigtJdNdUIkzHreXrot2Dy+EMThWLd7+g4TTzpI32e1CkT6sGSRI7aI2GQ309wo= Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) by VE1PR01MB5743.eurprd01.prod.exchangelabs.com (2603:10a6:803:127::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14; Wed, 16 Sep 2020 15:35:01 +0000 Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::d590:85f0:8fe2:84c3]) by VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::d590:85f0:8fe2:84c3%5]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 15:35:01 +0000 From: Eric S Fraga To: emacs-orgmode@gnu.org Subject: Re: using header data in document Organization: On the Interweb somewhere References: <87sgbi4usf.fsf@ebih.ebihd> <87o8m64rru.fsf@ebih.ebihd> <87zh5pssfb.fsf@ucl.ac.uk> <87363hsqbs.fsf@ebih.ebihd> X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: emacs-orgmode@gnu.org Date: Wed, 16 Sep 2020 16:34:59 +0100 Message-ID: <87tuvxrazg.fsf@disroot.org> Content-Type: text/plain X-ClientProxiedBy: LO2P265CA0069.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::33) To VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from t3610 (46.69.235.193) by LO2P265CA0069.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Wed, 16 Sep 2020 15:35:00 +0000 X-Url: http://www.ucl.ac.uk/~ucecesf/ X-Originating-IP: [46.69.235.193] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae584317-ae00-4bb0-defa-08d85a561339 X-MS-TrafficTypeDiagnostic: VE1PR01MB5743: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g2S7HY9aEP2Ngz/Whsa+Ye25WjVdi2mVy8TpT9KTv+NVtoCL1+7h1Y2urxdK8SN3LJ/8/1LqjLC/oZ8L1awDVFOPAodBXyR1EmFGhmuVq5hVoCl66zzbnot5m3yUs8mCDFxcPiU1TXdS+nc+YNqUidnUUSsMdAy07KazXYOl2cSvJLQ5Kqquw3gTOWysrXiU31Ap3o3DP9WJ5iLwlUuxFSRDyQws1d/8XeVaPA23fGvFiOoA/M5SYSHhrK6e9bBPel0Ta/yAaEj/foFKgIKLAA2E0OTZXeVwH3hsGEQhIZXpNMINqMwF6L0p8vY1hF5QWZPd7DMc0+3wXMAYT8v5NA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3327.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(366004)(376002)(39860400002)(136003)(66476007)(66556008)(9686003)(16526019)(2906002)(186003)(6916009)(8676002)(316002)(786003)(4744005)(5660300002)(36756003)(6486002)(8936002)(66946007)(26005)(6496006)(478600001)(83380400001)(36916002)(52116002)(956004)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: jeHJ6YnJJQp0Wd7pvff7lmo8l6TyqhVgBIuwVLyb+gQEL+bqc4C65ZrIB2NAHEIEVf5bUCPl1bjENDnbDVUbH9DFOAoXJfMOPDhoBVrIL7Jf715f7wrqnlXIg/lf1uL4zJWfF5yKm5hamfFi6Zb9Jhs6KhTIbm+dFSXil7WUCNytAIb6dwEkNLBgtCxd6bc0i5aHCignpPddWgC4/wCZugCJ/3kJcu+hHTmyW5gib0QVwPZ+TSFUMQITxOhvNBk3N5DIdB9olZlw4u6vFn8Xz7YRmaW5s+YWMKAdtAxxxWBL7QeWwLUw4Gg3IDvKV/1O7Tw2Dkexij0sZsrE6/UQdW/bdNcQoVvVgxA+l+w+VCyesla+VreOxh+CuBHY9CMWNWUhSpmWbK+esmDuipi38M35af55RAIx/1C3zdXXPHmyZ7xYQCNQfadeaHFGswr/bADOMRg+4jJLXJRjl3P4hcpXHKJ3fipdjhMwVuTadin6FXf/GEWZu7RA8QC/WGSHZWJZhU3Bm0ZbEzMDP8J+0EHWVKDnECODgAKoLjiIH2mz1I2SdtXObPY+t09ikEpTUlTDIuR+5POBtkyIet6K7F+kOmFEkYMUDwjl2l1Z4+345HaVXZJ72pn9/Ke6cU+hPoS94B86n+zwsxJrsBGI1g== X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-Network-Message-Id: ae584317-ae00-4bb0-defa-08d85a561339 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3327.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 15:35:01.2580 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 43YgkHZCydAo1ujlFLJ16dkkapMGkb+yLBW88XE65UKyDC6Sy2mPtBjW13nOWAvWWTQArBfiljqWzw3qx/zq3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR01MB5743 Received-SPF: none client-ip=40.107.22.102; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 11:35:02 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FORGED_SPF_HELO=1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=no 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=liveuclac.onmicrosoft.com header.s=selector2-liveuclac-onmicrosoft-com header.b=RifScSL+; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ucl.ac.uk (policy=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-Spam-Score: -2.11 X-TUID: BqdsBe+8jBQI On Wednesday, 16 Sep 2020 at 17:18, Emanuel Berg via "General discussions about Org-mode." wrote: > {{{date()}}} works as does {{{date(%D)}}} in a sense, > only the format string doesn't seem to influence the > output, which is "September 16, 2020". The documentation that you have in your post says that this works only if the actual date given in the #+DATE directive is a single timestamp. So, what did you specify there? If you give a time stamp, like [2020-09-16 Wed], it works fine for me. If you have something else, e.g. September 16, 2020, the format string is ignored. In any case, you may wish to use the {{{time(FORMAT)}}} macro instead as this does not depend on the date you have specified explicitly. And, in practice, I actually use {{{modification-time(FORMAT)}}}. In both of these cases, you need to specify the format. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e