|
@@ -471,7 +471,8 @@
|
|
|
(let ((org-columns-default-format "%A{@mean}")) (org-columns))
|
|
|
(get-char-property (point) 'org-columns-value-modified)))))
|
|
|
;; If a time value is expressed as a duration, return a duration.
|
|
|
- ;; If any of them follows H:MM:SS pattern, use it too.
|
|
|
+ ;; If any of them follows H:MM:SS pattern, use it too. Also handle
|
|
|
+ ;; combinations of duration and H:MM:SS patterns.
|
|
|
(should
|
|
|
(equal
|
|
|
"1d 4:20"
|
|
@@ -506,6 +507,25 @@
|
|
|
:END:"
|
|
|
(let ((org-columns-default-format "%A{:}")) (org-columns))
|
|
|
(get-char-property (point) 'org-columns-value-modified))))
|
|
|
+ (should
|
|
|
+ (equal
|
|
|
+ "1d 4:20"
|
|
|
+ (org-test-with-temp-text
|
|
|
+ "* H
|
|
|
+** S1
|
|
|
+:PROPERTIES:
|
|
|
+:A: 3d 3h
|
|
|
+:END:
|
|
|
+** S1
|
|
|
+:PROPERTIES:
|
|
|
+:A: 0d 1:20
|
|
|
+:END:"
|
|
|
+ (let ((org-columns-default-format "%A{:}")
|
|
|
+ (org-time-clocksum-use-fractional nil)
|
|
|
+ (org-time-clocksum-format
|
|
|
+ '(:days "%dd " :hours "%d" :minutes ":%02d")))
|
|
|
+ (org-columns))
|
|
|
+ (get-char-property (point) 'org-columns-value-modified))))
|
|
|
;; @min, @max and @mean also accept regular duration in
|
|
|
;; a "?d ?h ?m ?s" format.
|
|
|
(should
|