From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: how to customize date export Date: Mon, 03 Feb 2014 13:08:44 -0500 Message-ID: <87vbww6pcj.fsf@alphaville.bos.redhat.com> References: <87txchqpgu.fsf@ucl.ac.uk> <87wqhcfa78.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WANxE-0000ST-Et for emacs-orgmode@gnu.org; Mon, 03 Feb 2014 13:09:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WANx8-0008I3-K8 for emacs-orgmode@gnu.org; Mon, 03 Feb 2014 13:09:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:57105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WANx8-0008He-D8 for emacs-orgmode@gnu.org; Mon, 03 Feb 2014 13:09:02 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WANx7-0000eD-8m for emacs-orgmode@gnu.org; Mon, 03 Feb 2014 19:09:01 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Feb 2014 19:09:01 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Feb 2014 19:09:01 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > Mirko Vukovic 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