emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org table with datestamp convert to csv and then xlsx or ods: pr


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:22:23 +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)))

It does, works like charm, thank you so much. I suggest to include that
or a similar function into the org-table-export function!!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]