emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: how to extract start time and end time from the CLOCK: pro


From: Seweryn Kokot
Subject: [Orgmode] Re: how to extract start time and end time from the CLOCK: property
Date: Wed, 03 Sep 2008 21:10:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> Hi Seweryn,
>
> please see
>
> http://thread.gmane.org/gmane.emacs.orgmode/7430/focus=7430

Hi Carsten

Thanks a lot! This is exactly what I wanted. In my case the following
works

(defun my-org-column-cleaner (title value)
   (cond
     ((equal title "Start")
      (if (and value (>= (length value) 40))
          (substring value 16 21)
         nil ; there was no value, or it was a short string
         ))
         ((equal title "End")
      (if (and value (>= (length value) 40))
          (substring value 40 45)
         nil ; there was no value, or it was a short string
         ))
      (t nil)))
(setq org-columns-modify-value-for-display-function 'my-org-column-cleaner)

and

#+COLUMNS: %50ITEM(Action) %8CLOCK(Start) %8CLOCK(End) %7CLOCKSUM(Clocked)


The only problem is that Emacs+orgmode under Linux gives

[2008-08-19 wto 07:26]--[2008-08-19 wto 08:26]

and under Windows I got

[2008-08-05 Wt 11:44]--[2008-08-05 Wt 13:47]

I guess this is caused by the system locales. Is it possible to make it
consistent with some settings in .emacs file?

regards,
-- 
Seweryn





reply via email to

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