From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: how to customize date export
Date: Mon, 03 Feb 2014 13:08:44 -0500 [thread overview]
Message-ID: <87vbww6pcj.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 87wqhcfa78.fsf@ucl.ac.uk
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Mirko Vukovic <mirko.vukovic@gmail.com> writes:
>
> [...]
>
>> Hi Eric,
>>
>> Thanks for the note. As it stands now, I cannot
>> customize these two variables to do what I want, as they accept the
>> whole time-steamp as argument. I will enter the dates manually
>> in the org file for now.
>
> I thought as much.
>
> Looking through the code, some of the functions for outputting the time
> stamps make use of org-translate-time which does allow some
> customisation of how the dates and times are written out, along the
> lines of what you were looking at for DATE entries. Check the
> documentation for that function. But it could be I've misunderstood the
> code...
Based on Eric's hint, I followed org-translate-time's docstring (and
references therein) and I came up with this which seems to work (in the
sense that the dates look like <2014/02/03 Monday> when exported,
which agrees with the specified format):
--8<---------------cut here---------------start------------->8---
#+STARTUP: customtime
* foo
<2014-02-03 Mon>
# Local Variables:
# org-time-stamp-custom-formats: ("<%Y/%m/%d %A>" . "<%Y/%m/%d %A %H:%M>")
# End:
--8<---------------cut here---------------end--------------->8---
However, the angle brackets seem to be required.
Nick
next prev parent reply other threads:[~2014-02-03 18:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 18:21 how to customize date export Mirko Vukovic
2014-02-02 19:33 ` Eric S Fraga
2014-02-03 15:15 ` Mirko Vukovic
2014-02-03 16:11 ` Eric S Fraga
2014-02-03 18:08 ` Nick Dokos [this message]
2014-02-04 18:45 ` Eric S Fraga
2014-02-04 21:48 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbww6pcj.fsf@alphaville.bos.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.