emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Modify clock in/out time to previous/following full quarter of an hour.
@ 2012-09-13 10:06 Rainer Stengele
  2012-09-18  7:55 ` Bastien
  2012-09-18 10:09 ` Modify clock in/out time to previous/following full quarter of an hour. => proposal Rainer Stengele
  0 siblings, 2 replies; 4+ messages in thread
From: Rainer Stengele @ 2012-09-13 10:06 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

My whole clocking is based on whole quarters of an hour.
When clocking in and out I always adjust the clocks to the previous or
the following quarter. I do not like to fiddle within minute-wise details.
Clocking in mostly is moved to the previous, clock out time to the
following full quarter.
I also do clock tasks mostly after the task is started for already a few
minutes.
I'd like to automatically push the clock-in time to the previous, the
clock out time to the following full quarter. This will save me many
times from manually adjusting two clock entries.

How could I achieve this? Which hook should I use? How? (I never
programmed something like this).

Thanks for hints,

Rainer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modify clock in/out time to previous/following full quarter of an hour.
  2012-09-13 10:06 Modify clock in/out time to previous/following full quarter of an hour Rainer Stengele
@ 2012-09-18  7:55 ` Bastien
  2012-09-18 10:09 ` Modify clock in/out time to previous/following full quarter of an hour. => proposal Rainer Stengele
  1 sibling, 0 replies; 4+ messages in thread
From: Bastien @ 2012-09-18  7:55 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@online.de> writes:

> How could I achieve this? Which hook should I use? How? (I never
> programmed something like this).

(defun my-org-adjust-clock-timestamps ()
  (interactive)
  (let ((org-time-stamp-rounding-minutes '(0 15)))
    (save-excursion
      (beginning-of-line)
      (re-search-forward org-ts-regexp3 nil t)
      (backward-char 2)
      (org-shiftdown)
      (re-search-forward org-ts-regexp3 nil t)
      (backward-char 2)
      (org-shiftup))))

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modify clock in/out time to previous/following full quarter of an hour. => proposal
  2012-09-13 10:06 Modify clock in/out time to previous/following full quarter of an hour Rainer Stengele
  2012-09-18  7:55 ` Bastien
@ 2012-09-18 10:09 ` Rainer Stengele
  2012-09-18 10:28   ` Bastien
  1 sibling, 1 reply; 4+ messages in thread
From: Rainer Stengele @ 2012-09-18 10:09 UTC (permalink / raw)
  Cc: emacs-orgmode

Am 13.09.2012 12:06, schrieb Rainer Stengele:
> Hi!
> 
> My whole clocking is based on whole quarters of an hour.
> When clocking in and out I always adjust the clocks to the previous or
> the following quarter. I do not like to fiddle within minute-wise details.
> Clocking in mostly is moved to the previous, clock out time to the
> following full quarter.
> I also do clock tasks mostly after the task is started for already a few
> minutes.
> I'd like to automatically push the clock-in time to the previous, the
> clock out time to the following full quarter. This will save me many
> times from manually adjusting two clock entries.
> 
> How could I achieve this? Which hook should I use? How? (I never
> programmed something like this).
> 
> Thanks for hints,
> 
> Rainer
> 
> 
> 
Hi again,

I would propose a configuration possibility where all clockings in Org
are rounded up or down to full quarters of an hour.

Motivation: Mostly customers and bosses are not willing to look at
clocktables showing minutely detailled entries like

 CLOCK: [2012-09-18 Di 08:13]--[2012-09-18 Di 08:27] =>  0:14
 CLOCK: [2012-09-18 Di 08:33]--[2012-09-18 Di 09:49] =>  1:16
..

I would suggest Org to be able to create clockings with the starting und
ending timestamp being rounded to the next or previous (configurable)
full quarter (half?) of an hour.

I'd like to know if other Org users are also adjusting clock entries to
full quarters (halfs) of hours all the time.

What do you think?

Regards,
rainer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modify clock in/out time to previous/following full quarter of an hour. => proposal
  2012-09-18 10:09 ` Modify clock in/out time to previous/following full quarter of an hour. => proposal Rainer Stengele
@ 2012-09-18 10:28   ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2012-09-18 10:28 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@online.de> writes:

> I'd like to know if other Org users are also adjusting clock entries to
> full quarters (halfs) of hours all the time.
>
> What do you think?

I think bosses are mostly interested by clocktables, not by all the
CLOCK lines in a headline.

As long as the clock table is a table, it should be possible to have
a formula doing the rounding -- I'll leave it as an exercise :)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-18 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 10:06 Modify clock in/out time to previous/following full quarter of an hour Rainer Stengele
2012-09-18  7:55 ` Bastien
2012-09-18 10:09 ` Modify clock in/out time to previous/following full quarter of an hour. => proposal Rainer Stengele
2012-09-18 10:28   ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).