org-clock: Fix ":formula %" with disparate duration formats
commit57ca9ba80a8527e2ecbcf17c057d9eea52edf2e3
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Dec 2016 00:19:00 +0000 (29 01:19 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Dec 2016 00:19:00 +0000 (29 01:19 +0100)
treee8cf2b83c42e32c4c40a84ab09a9a55d4ab3b8a7
parentbbbed7aad9be5c4d9c9a01356918e896f8113458
org-clock: Fix ":formula %" with disparate duration formats

* lisp/org-clock.el (org-clock-time%): Handle various duration
  formats.  Refactor code.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Add
  tests.

Reported-by: Andreas Mueller <lists@0x7.ch>
<http://permalink.gmane.org/gmane.emacs.orgmode/111067>
lisp/org-clock.el
testing/lisp/test-org-clock.el