Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set clock table duration format for emacs org-mode

Tags:

emacs

org-mode

I recently upgraded to org-mode 8.2.5h and now when I update my clock tables, values that are larger than 24h get for instance displayed as: 1d 9:16. Is there any preference I can set to switch it back to the hours:minutes format. I've searched the documentation but could not find any information regarding this topic.

like image 661
Bas Bossink Avatar asked Mar 28 '14 13:03

Bas Bossink


3 Answers

You should now use org-duration-format : (setq org-duration-format (quote h:mm)) for your question.

See https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00270.html for explanations.

like image 61
fredz Avatar answered Nov 20 '22 22:11

fredz


Apparently you can set the org-time-clocksum-format variable like this:

(setq org-time-clocksum-format (quote (:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t)))
like image 39
Bas Bossink Avatar answered Nov 20 '22 22:11

Bas Bossink


  • Before Org-Mode Version 9.1

You can set the org-time-clocksum-format variable like this :

(setq org-time-clocksum-format (quote (:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t)))
  • Org-Mode Version 9.1 and up

You should now use org-duration-format :

(setq org-duration-format (quote h:mm))

See this for explanations on the update.

See this for the Org-Mode release notes.

like image 20
Roberto Morávia Avatar answered Nov 20 '22 20:11

Roberto Morávia