[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!!
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, (continued)
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Nicolas Goaziou, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Nicolas Goaziou, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Nicolas Goaziou, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Nicolas Goaziou, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Nicolas Goaziou, 2018/01/08
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem,
Uwe Brauer <=
- Re: [O] org table with datestamp convert to csv and then xlsx or ods: problem, Uwe Brauer, 2018/01/09