|
From: | Uwe Brauer |
Subject: | Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem |
Date: | Tue, 09 Jan 2018 09:23:33 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> Uwe Brauer <address@hidden> writes: > Ah well, this was a basis to get you started... This one > should work > (defun my-format-timestamps (cell) > (org-quote-csv-field > (replace-regexp-in-string > org-ts-regexp-both (lambda (m) > (format-time-string > (let ((hours? (string-match-p "[0-9]+:[0-9]+" m))) > (funcall (if hours? #'cdr #'car) > org-time-stamp-custom-formats)) > (apply #'encod-time (save-match-data > (org-parse-time-string m))))) > cell)))
There is a small misspelling. Should be encode-time not encod-time.
[Prev in Thread] | Current Thread | [Next in Thread] |