Hello,
Johnson <j3soon@gapp.nthu.edu.tw> writes:
I'm contributing to an org file python parser to correctly parse durations.
I found the comments in org-duration.el
(https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-duration.el#L31
<https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-duration.el#L31>),
mentioning that `1d3h5min` is a valid duration format.
So, I expect the following should work:
M-x eval-expression <RET>
(org-duration-string-to-minutes "1d3h5min") <RET>
I cannot reproduce it. I get 1625.0.
Maybe your Org is too old. So-called "compact" form was introduced after the
others.
Regards,