emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Clocking work time with a date not a time only


From: Giovanni Ridolfi
Subject: Re: [Orgmode] Clocking work time with a date not a time only
Date: Wed, 1 Apr 2009 13:56:42 +0000 (GMT)

--- Mar 31/3/09, Jan Buchal <address@hidden> ha scritto:
> I use Clocking work time function for a logging my work.
> With keys C-c C-x
> C-i I start a clocking and with C-c C-x C-o I finish my
> clocking. the
> function put something like:
> 
>   CLOCK: [2009-03-30 Po 11:00]--[2009-03-30 Po 11:38]
> =>  0:38
> 
> and then I use the dynamic region for summary of my all
> times. But I
> would like have in a table not a times but a dates too. Is
> it any way?
> the table can seams for example so:
> 
> #+BEGIN: clocktable :maxlevel 2 :scope file
> Clock summary at [2009-03-31 Út 15:21]
> 
> | L | Headline                             | Time   |
> |---+--------------------------------------+--------|
> |   | *Total time*                         | *0:38* |
> |---+--------------------------------------+--------|
> | 1 | project one:              | 2009-03-31 0:38   |
> #+END:
> 
> Also not a time only but date plus time. Is it possible?
> 

Jan, 2 suggestions:

1.  how about using date in the *headline itself?*:

--------------------test.org-----------
* [2009-04-01 mer] time
** 1st task
   CLOCK: [2009-04-01 mer 15:20]--[2009-04-01 mer 15:28] =>  0:08
** 2nd task
   CLOCK: [2009-04-01 mer 15:18]--[2009-04-01 mer 15:28] =>  0:10

#+BEGIN: clocktable :maxlevel 2 :scope file
Clock summary at [2009-04-01 mer 15:29]
| L | Headline                                   |    Time |       |
|---+--------------------------------------------+---------+-------|
|   | *Total time*                               | *33:33* |       |
|---+--------------------------------------------+---------+-------|
| 1 | [2009-04-01 mer] time                      |    0:18 |       |
| 2 | 1st task                                   |         |  0:08 |
| 2 | 2nd task                                   |         |  0:10 |
|---+--------------------------------------------+---------+-------|
#+END:

2. exploit properties 
-----------------------------test2.org------------------
* [2009-04-01 mer] time
:PROPERTIES:
:COLUMNS:%Heading %Date %CLOCKSUM
:END:
** 1s task
:PROPERTIES:
:ID: task
:Heading: 1s Task
:Date: [2009-04-01 mer]
   CLOCK: [2009-04-01 mer 15:20]--[2009-04-01 mer 15:28] =>  0:08
:END:
** 2nd task
:PROPERTIES:
:ID: task
:Heading: 2nd task
   :Date:  [2009-01-28 mer]
   CLOCK: [2009-04-01 mer 15:18]--[2009-04-01 mer 15:28] =>  0:10
:END:
#+BEGIN: columnview :hlines 1 :id "task"
| Heading  | Date             | CLOCKSUM |
|----------+------------------+----------|
|          |                  |     0:18 |
| 1st task | [2009-04-01 mer] |     0:08 |
| 2nd task | [2009-01-28 mer] |     0:10 |
#+END:
---------------------------------------------------

Carsten, is it possible to have, as a special property, 
the value of the headline ?
.. shouldn't be complicated, it's already extracted 
for clocktables.. ;-)

cheers,
Giovanni








reply via email to

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