Re: [Orgmode] Format for timestamp export

2009-04-13 Thread Carsten Dominik

Fixed for LaTeX export, and documented.

- Carsten

On Apr 12, 2009, at 8:37 PM, Daniel Clemente wrote:


El jue, abr 09 2009, Carsten Dominik va escriure:


Can I format timestamps on export?


You can customize them for display, which will also
transfer to exported files.
Check out the variables `org-display-custom-times' and
`org-time-stamp-custom-formats'.

 Thanks; I didn't know that org-display-custom-times would affect  
also the export. Could the documentation say that?






___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Format for timestamp export

2009-04-13 Thread Christopher Suckling


On 13 Apr 2009, at 07:54, Carsten Dominik wrote:


Fixed for LaTeX export, and documented.

- Carsten


Thanks. Works perfectly.

Christopher



On Apr 12, 2009, at 8:37 PM, Daniel Clemente wrote:


El jue, abr 09 2009, Carsten Dominik va escriure:


Can I format timestamps on export?


You can customize them for display, which will also
transfer to exported files.
Check out the variables `org-display-custom-times' and
`org-time-stamp-custom-formats'.

Thanks; I didn't know that org-display-custom-times would affect  
also the export. Could the documentation say that?






___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Format for timestamp export

2009-04-12 Thread Daniel Clemente
El jue, abr 09 2009, Carsten Dominik va escriure:

 Can I format timestamps on export?

 You can customize them for display, which will also
 transfer to exported files.
 Check out the variables `org-display-custom-times' and
 `org-time-stamp-custom-formats'.

  Thanks; I didn't know that org-display-custom-times would affect also the 
export. Could the documentation say that?



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Format for timestamp export

2009-04-12 Thread Christopher Suckling


On 12 Apr 2009, at 19:37, Daniel Clemente wrote:


El jue, abr 09 2009, Carsten Dominik va escriure:


Can I format timestamps on export?


You can customize them for display, which will also
transfer to exported files.
Check out the variables `org-display-custom-times' and
`org-time-stamp-custom-formats'.

 Thanks; I didn't know that org-display-custom-times would affect  
also the export. Could the documentation say that?




BTW, this doesn't work in the latex exporter. I used the attached ugly  
hack rather than fix the latex exporter - I suspect I was in a rush to  
get a piece of work out to someone. Anyway, the function cas/org- 
export-as-latex-to-buffer-with-timestamp behaves the same as org- 
export-as-latex-to-buffer, but translates all timestamps to org-time- 
stamp-custom-formats.


Best,

Christopher



org-latex-timestamp.el
Description: Binary data


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Format for timestamp export

2009-04-09 Thread Carsten Dominik


On Apr 7, 2009, at 1:12 AM, Daniel Clemente wrote:



Hi. Since I edit my files from different computers, each with  
different locales, I end up with dates like:



  CLOCK: [2009-04-01 mié 14:15]--[2009-04-01 mié 14:22] =  0:07
…
SCHEDULED: 2009-03-26 dj 18:00
…
CLOSED: [2007-11-25 So 19:05]

… 2007-08-31 Fri 17:25


Emacs and I can live with these localised week day names, but to  
external (HTML) users I would like to show dates in a custom format  
so that they always look the same.



Can I format timestamps on export?


You can customize them for display, which will also
transfer to exported files.
Check out the variables `org-display-custom-times' and
`org-time-stamp-custom-formats'.

When you turn this on, you lose some of the editing capabilities
for time stamps with S-cursor keys.  So if you really only need it
for export, you can use one of the export preprocessor hooks and
change all the time stamps with a function like (untested):

(add-hook 'org-export-preprocess-final-hook
 (lambda ()
   (let ((org-display-custom-times t)
  (org-time-stamp-custom-formats
   '(%m/%d/%y %a . %m/%d/%y %a %H:%M))) ;; customize!
 (goto-char (point-min))
 (while (re-search-forward org-ts-regexp-both nil t)
(replace-match (save-match-data
 (org-translate-time (match-string 0)))
   t t)

HTH

- Carsten









Thanks,
Daniel


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Format for timestamp export

2009-04-06 Thread Daniel Clemente

Hi. Since I edit my files from different computers, each with different 
locales, I end up with dates like:


CLOCK: [2009-04-01 mié 14:15]--[2009-04-01 mié 14:22] =  0:07
…
  SCHEDULED: 2009-03-26 dj 18:00
…
  CLOSED: [2007-11-25 So 19:05]

… 2007-08-31 Fri 17:25


  Emacs and I can live with these localised week day names, but to external 
(HTML) users I would like to show dates in a custom format so that they always 
look the same.


  Can I format timestamps on export?


Thanks,
Daniel


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode