Implement new `U' mode switch for table formulas to omit seconds in durations
commitdaff9c93f2e44eeb31989e3b5f753ad9a1648e44
authorCarsten Dominik <carsten.dominik@gmail.com>
Sun, 11 Jun 2017 21:44:51 +0000 (11 23:44 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 14 Jun 2017 03:43:12 +0000 (14 05:43 +0200)
treea63d270d0167394819d2851062414cd609cc9d27
parent5e35bc1807e0bd9014cd6aa9374b6899f164fa86
Implement new `U' mode switch for table formulas to omit seconds in durations

* lisp/org-table.el (org-table-duration-custom-format): Add new
HH:MM format.
(org-table-duration-hour-zero-padding): New option.
(org-table-eval-formula): Select second-less format if
requested.
(org-table-time-seconds-to-string): Implement formats without
seconds and without zero-padding for hours.

* testing/lisp/test-org-table.el (test-org-table/duration):
New test for second-less durations.

* doc/org.texi (Formula syntax for Calc)
(Durations and time values): Document the U mode switch.
doc/org.texi
lisp/org-table.el
testing/lisp/test-org-table.el