emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Have org-clock-{in,out} functions respect org-time-stamp-rounding-mi


From: Jacob S. Gordon
Subject: Re: Have org-clock-{in,out} functions respect org-time-stamp-rounding-minutes
Date: Wed, 28 May 2025 11:40:53 -0400
User-agent: Mozilla Thunderbird

Hey jman,

On 2025-05-28 05:56, jman wrote:
> when I clock in/out from a task (`org-clock-in` and `org-clock-out`) I would 
> like them to respect the variable `org-time-stamp-rounding-minutes` (number 
> of minutes to round time stamps to).

This should be possible! Setting `org-clock-rounding-minutes' to a
non-integer value will use the `car' of `org-timestamp-rounding-minutes'.

For example, if you set:

┌────
│ (setopt org-clock-rounding-minutes nil
│         org-timestamp-rounding-minutes '(5 5))
└────

then clocking into a task at 11:36 and out at 11:38 will produce the
following entry:

┌────
│ * Task
│ :LOGBOOK:
│ CLOCK: [2025-05-28 Wed 11:35]--[2025-05-28 Wed 11:40] =>  0:05
│ :END:
└────

Best,

-- 
Jacob S. Gordon
jacob.as.gordon@gmail.com

======================

Please avoid sending me HTML emails and MS Office documents.
https://useplaintext.email/#etiquette
https://www.gnu.org/philosophy/no-word-attachments.html



reply via email to

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