[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Date-centric Clocktable
From: |
Olaf Dietsche |
Subject: |
Re: [O] Date-centric Clocktable |
Date: |
Wed, 07 Sep 2011 15:54:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Carsten Dominik <address@hidden> writes:
> On Sep 7, 2011, at 12:16 PM, Olaf Dietsche wrote:
>
>> Rasmus <address@hidden> writes:
>>
>>>> Why don't you just use a simple (perl/python/...) script to collect your
>>>> data? Here's a quick hack in perl:
>>>
>>> That was my plan if I was not able to do from within Org. To me it would
>>> be a lot faster than hacking something together in emacs-lisp,
>>> unfortunately.
>>
>> If you insist on elisp, maybe something along these (untested) lines
>> might work:
>>
>> ---8<--- cut here ---
[snip]
>> --- cut here --->8---
>
> this is great!
Thank you :-)
> Maybe we should make this a little builtin function,
> with a format specification to create the lines.
> What is still missing, I think, is some sorting by time would.
> Basically, use
>
> (org-float-time
> (apply 'encode-time (save-match-data (org-parse-time-string (match-string
> 1)))))
>
> after the successful search for a clock string to get a floating
> point number representing the starting time, collect the
> line you are creating into an alist with the times and sort
> them before inserting into the buffer.
I don't know, wether adding small special purpose functions adds real
value, since we already have "org-map-entries". Maybe adding generic
functions to org or showing lisp snippets at worg would be more useful.
Regards, Olaf
- Re: [O] Date-centric Clocktable, (continued)
Re: [O] Date-centric Clocktable, Bernt Hansen, 2011/09/06
Re: [O] Date-centric Clocktable, Olaf Dietsche, 2011/09/07
Re: [O] Date-centric Clocktable, Rasmus, 2011/09/07
Re: [O] Date-centric Clocktable, Olaf Dietsche, 2011/09/07
Re: [O] Date-centric Clocktable, Olaf Dietsche, 2011/09/07
Re: [O] Date-centric Clocktable, Rasmus, 2011/09/07