Re: [O] Bug: clocktable question [9.1.6 (9.1.6-dist @ /Users/savoie/tmp/org-bug/org-9.1.6/lisp/)]

2018-01-09 Thread Nicolas Goaziou
Hello,

sav...@nsidc.org writes:

> - GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 
> 10.9.5 (Build 13F1911)) of 2017-04-21
> - Org mode version 9.1.6 (9.1.6-10-g0c9329-elpa @ 
> /Users/savoie/.emacs.d/elpa/org-20180108/)
>
> Having a hard time understanding clocktables.  I either have a bug or a
> misunderstanding. Why don't my hours off for Wednesday show up when I create a
> clocktable starting on Monday at 00 and ending on Wednesday at 23:59 if I use 
> :step?
>
> I expect that when I have clock stamp:
>   CLOCK: [2017-12-27 Wed 08:00]--[2017-12-27 Wed 16:00] =>  8:00
>
> and I'm generating a clocktable with a start time before the beginning and an
> end time after the end, I would see that reflected in the table.
>
> Below are 4 stanzas. The first are some clocked hours.  The second is a clock
> table that works as expected.  The second and third stanzas seem to exclude 
> the
> hours from Wednesday (which I don't expect).  I don't know why the 4th stanza
> appears as it does.

Fixed. Thank you.

 `org-clocktable-steps' was rounding :tstart and :tend to 00:00.


Regards,

-- 
Nicolas Goaziou



[O] Bug: clocktable question [9.1.6 (9.1.6-dist @ /Users/savoie/tmp/org-bug/org-9.1.6/lisp/)]

2018-01-09 Thread savoie

- GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 
(Build 13F1911)) of 2017-04-21
- Org mode version 9.1.6 (9.1.6-10-g0c9329-elpa @ 
/Users/savoie/.emacs.d/elpa/org-20180108/)

Having a hard time understanding clocktables.  I either have a bug or a
misunderstanding. Why don't my hours off for Wednesday show up when I create a
clocktable starting on Monday at 00 and ending on Wednesday at 23:59 if I use 
:step?

I expect that when I have clock stamp:
  CLOCK: [2017-12-27 Wed 08:00]--[2017-12-27 Wed 16:00] =>  8:00

and I'm generating a clocktable with a start time before the beginning and an
end time after the end, I would see that reflected in the table.

Below are 4 stanzas. The first are some clocked hours.  The second is a clock
table that works as expected.  The second and third stanzas seem to exclude the
hours from Wednesday (which I don't expect).  I don't know why the 4th stanza
appears as it does.


```

* Here's some vacation hours.
  :LOGBOOK:
  CLOCK: [2017-12-25 Mon 08:00]--[2017-12-25 Mon 16:00] =>  8:00
  CLOCK: [2017-12-26 Tue 08:00]--[2017-12-26 Tue 16:00] =>  8:00
  CLOCK: [2017-12-27 Wed 08:00]--[2017-12-27 Wed 16:00] =>  8:00
  :END:

* Clocktable with no steps  Seems ok.
 #+BEGIN: clocktable :tstart "<2017-12-25 Mon 00:00>" :tend "<2017-12-27 Wed 
23:59>" :scope file
 #+CAPTION: Clock summary at [2018-01-08 Mon 14:52]
 | Headline| Time  |
 |-+---|
 | *Total time*| *1d 0:00* |
 |-+---|
 | Here's some vacation hours. | 1d 0:00   |
 #+END:

* Time it weekly  (I think it's missing Wednesday)
#+BEGIN: clocktable :tstart "<2017-12-25 Mon 00:00>" :tend "<2017-12-27 Wed 
23:59>"  :scope file :step week

Weekly report starting on: [2017-12-25 Mon]
| Headline| Time|
|-+-|
| *Total time*| *16:00* |
|-+-|
| Here's some vacation hours. | 16:00   |
#+END:

* Time it daily (Sure looks like Wed is missing)
#+BEGIN: clocktable :tstart "<2017-12-25 Mon 00:00>" :tend "<2017-12-27 Wed 
23:59>" :scope file :step day

Daily report: [2017-12-25 Mon]
| Headline| Time   |
|-+|
| *Total time*| *8:00* |
|-+|
| Here's some vacation hours. | 8:00   |

Daily report: [2017-12-26 Tue]
| Headline| Time   |
|-+|
| *Total time*| *8:00* |
|-+|
| Here's some vacation hours. | 8:00   |

Daily report: [2017-12-27 Wed]
| Headline | Time   |
|--+|
| *Total time* | *0:00* |
#+END:


* Time it daily, but use illegal time for Wed end
#+BEGIN: clocktable :tstart "<2017-12-25 Mon 00:00>" :tend "<2017-12-27 Wed 
24:00>" :scope file :step day

Daily report: [2017-12-25 Mon]
| Headline| Time   |
|-+|
| *Total time*| *8:00* |
|-+|
| Here's some vacation hours. | 8:00   |

Daily report: [2017-12-26 Tue]
| Headline| Time   |
|-+|
| *Total time*| *8:00* |
|-+|
| Here's some vacation hours. | 8:00   |

Daily report: [2017-12-27 Wed]
| Headline| Time   |
|-+|
| *Total time*| *8:00* |
|-+|
| Here's some vacation hours. | 8:00   |
#+END:
```




Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.




Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 
10.9.5 (Build 13F1911))
 of 2017-04-21
Package: Org mode version 9.1.6 (9.1.6-dist @ 
/Users/savoie/tmp/org-bug/org-9.1.6/lisp/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate
  org-babel-speed-command-activate)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((closure
  (org-inlinetask-min-level buffer-face-mode-face org-