emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-capture-templates: %date is too long


From: Uwe Brauer
Subject: Re: org-capture-templates: %date is too long
Date: Fri, 05 Mar 2021 08:32:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Uwe Brauer <oub@mat.ucm.es> writes:

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

> Capture templates allow inclusion of an arbitrary elisp expression with
> %(EXP). You could try defining an elisp function which accepts %:date as
> an argument (i.e. a string arg) and formats it using normal elisp date/time 
> functions and
> returns the result as a string and then call that function within your
> template?

Ah, ok now I see I will give it a try at the weekend.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]