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: Nicolas Goaziou
Subject: Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem
Date: Mon, 08 Jan 2018 15:32:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Uwe Brauer <address@hidden> writes:

>    > Hello,
>    > Uwe Brauer <address@hidden> writes:
>
>
>    > None. The export to CSV looks correct and complete. Conversion to CSV
>    > does not pretend converting anything else, in particular timestamps, to
>    > another format.
>
> Ok,
>
> Now how could that be achieved? I seem not the only one missing that a
> feature.
> https://lists.gnu.org/archive/html/emacs-orgmode/2016-11/msg00398.html

For example:

  (defun my-format-timestamps (cell)
    (org-quote-csv-field
     (replace-regexp-in-string org-ts-regexp-both "\\1" cell)))

  (defun my-tbl-to-csv (table params)
    (orgtbl-to-csv table
                   (org-combine-plists '(:fmt my-format-timestamps) params)))




reply via email to

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