From: Bastien <bzg@altern.org>
To: Rainer Stengele <rainer.stengele@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Modify clock in/out time to previous/following full quarter of an hour.
Date: Tue, 18 Sep 2012 09:55:11 +0200 [thread overview]
Message-ID: <87haqv7hku.fsf@bzg.ath.cx> (raw)
In-Reply-To: <k2sb7d$bdg$1@ger.gmane.org> (Rainer Stengele's message of "Thu, 13 Sep 2012 12:06:38 +0200")
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
next prev parent reply other threads:[~2012-09-18 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87haqv7hku.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=rainer.stengele@online.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).