From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wDeZLcHKemLqrgAAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 22:27:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WGWwLcHKemLMGwAAauVa8A (envelope-from ) for ; Tue, 10 May 2022 22:27:45 +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 6F76F9CAD for ; Tue, 10 May 2022 22:27:45 +0200 (CEST) Received: from localhost ([::1]:51128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noWSN-0005Fz-Jp for larch@yhetil.org; Tue, 10 May 2022 16:27:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noWRf-0005C4-SP for emacs-orgmode@gnu.org; Tue, 10 May 2022 16:26:59 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:44898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noWRe-0003Bb-GR for emacs-orgmode@gnu.org; Tue, 10 May 2022 16:26:59 -0400 Received: by mail-pg1-x52e.google.com with SMTP id v10so15532849pgl.11 for ; Tue, 10 May 2022 13:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ClxWN6cHXMYKlCbOb4J5tDzug/eU+oS2Nx9EPEYC8vU=; b=hOd5nwu4byFiYoE751LOs5EXBF9ssGUNE8xZZfh2Z0cuUN0lhYZlSjM+7mAYy8J7/V n1sNh1FqbhkMWcdVoP+1A1ud76jgiXvEcTKbVWzxhfurPGDIXfJAEvy/CMxnaBKH5OJf yGZyMuJngqbmgGgKm5xnHMaohlKfhiqSuln7iZp2j3XY5Ohulq4rSfF6oY5lQTX9kTJG JVnp0pEvemHXoU+MtsM13/TAXuGYIzoZ7dnkpCc6QGkcl1c3RdqUFFsc6sBeif3Z35G9 y5CHFeH+PbJBtRa8ergfUKiKQ+HCOppL3E066LCzzdtxEKJIuLkgBgMujO9hmu26JaCe 0MNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ClxWN6cHXMYKlCbOb4J5tDzug/eU+oS2Nx9EPEYC8vU=; b=fipDQiwxecx38Gif68rZ3hpNPkGyKTVeyLunPRoGklu9Eql/F0lorhFOhaAF6U/hja W2bIeFKfX0ZaGLwBH5TqYFmHFVDZMJpWbt/mPV6TGTNJXXUEw/1Al823W6GBXj3UvXWg DXaXV6G+2FL4BO1mUIxDPbYDersDURfGzddt/zQsrjC/CFSgOCmwTh1yy+q29qhxhBXq 5YZGg7cPSnw1iPxNoxb752cWsTaZt6UdqMD+W6Jt1nQmDf1MYMiE5g1ouK0Aju3FALTE v5VeL0Mw9zT3kJ6LMML6fYDorfGQhA3T5+K2kK+Tone3+HYxYKcFk7B5ipuFugBaBRsg 9Vsw== X-Gm-Message-State: AOAM530a8bdeKZ58rugtJo70kf9J5fHZwYTHBdxD3ravWkZJygg7Gx15 t571WOhHwzqjGBuy7lREdll4zib5c/FlLGiWw2YuRcD1wXE= X-Google-Smtp-Source: ABdhPJyYD/P1F/84ZFMnYni48XQb1PH0ayo4ci/rFyjKAncHguILjvzQuDju/+2MY0N3P41ttfsfuQcRVzXxRpq9Hac= X-Received: by 2002:a05:6a00:114b:b0:4f7:915:3ec3 with SMTP id b11-20020a056a00114b00b004f709153ec3mr22069905pfm.8.1652214416991; Tue, 10 May 2022 13:26:56 -0700 (PDT) MIME-Version: 1.0 References: <87lev961yo.fsf@med.uni-goettingen.de> <875ymdqh9z.fsf@gmail.com> In-Reply-To: <875ymdqh9z.fsf@gmail.com> From: Kaushal Modi Date: Tue, 10 May 2022 16:26:20 -0400 Message-ID: Subject: Re: source block evaluation in #+DATE line To: Jeremie Juste Cc: Andreas Leha , emacs-org list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=kaushal.modi@gmail.com; helo=mail-pg1-x52e.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, 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=1652214465; 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=ClxWN6cHXMYKlCbOb4J5tDzug/eU+oS2Nx9EPEYC8vU=; b=Idflj3BsddUGRAn65xvmAszpHi66oOfujjAh/AF+SkITfQ983Iun5v8rC6mTE4dyopJjqL w3Nvw2aKMtY3LRkcNKAzxmAtJxW4kiDgzo4g14M5bS/CAX2L32IvIr3lzZFllmlbo13ZFJ Up2zhm0aiu+9rYjhf6VPpp528YEg24hkPMqsD+x+DspWE4XqWjtRhzXp0HtZ5/tlDDGnwa dmtlclPj5ZMJiBITHYlyFvrWjowD+AMJTnDQdkDqe1uRND/730muTmll8CgSZcs/Xv8cZW GFju5u7BUMi+r6lKKchsPGAnRxemSmwvh5Glov4M1FhMsTOYycEG/jTN7rsEFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652214465; a=rsa-sha256; cv=none; b=ufUFGd7/wopJ77AbR43yy1e0XvIH3Cb8ZgvAxAilBKlQyzHZcSm/MTXy4obIIHSZK0dFe1 yuWYZCW2TNxPjAsQKoO+GfeGhoE2tOVb+/ROxKhBrPgjgkLNL0/nFcSgC03ZWAG2SzGs49 tDbjUaJZCxlLafk1+DYllaOpaUIKQfpCLRUQCFmdC5a7MesJxK/1BdBjMEqyQ6oqdAA2yw Fa7c3mJGWMHiZ1WPL0FHUgqc/zT0EfIBR81s4JcVPI0SZKMYMZoEYLBtejS6ihh0WGHR44 yBROsc2vsdIwLd18negLYlAZs7JLhWZPJeau3PPUbUskfrQpvdLsM+YkvD+YMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hOd5nwu4; 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: -8.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hOd5nwu4; 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: 6F76F9CAD X-Spam-Score: -8.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: iWih4lNU/GEW Also check out the {{{time}}} macro if you want complete control on the formatting of the date string. Example Org snippet: ===== #+date: {{{time(%Y-%m-%d)}}} #+options: toc:nil author:nil See the ~{{{time}}}~ macro in [[info:org#Macro Replacement][org#Macro Replacement]]. The format passed to the ~time~ macro is same as that understood by [[help:format-time-string]]. - Note :: Remember to escape the commas. \\ Example: ~#+date: {{{time(%b %e %Y\, %a)}}}~. #+begin_src emacs-lisp (org-export-as 'ascii) #+end_src =====