From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: org table with datestamp convert to csv and then xlsx or ods: problem Date: Mon, 08 Jan 2018 23:11:39 +0100 Message-ID: <87fu7ghug4.fsf@mat.ucm.es> References: <87373hzk6z.fsf@mat.ucm.es> <87incc5vvi.fsf@nicolasgoaziou.fr> <877essxx8y.fsf@mat.ucm.es> <87bmi45sm6.fsf@nicolasgoaziou.fr> <87373gxupd.fsf@mat.ucm.es> <87zi5o4cjk.fsf@nicolasgoaziou.fr> <87y3l8wfdt.fsf@mat.ucm.es> <87vagc4ayo.fsf@nicolasgoaziou.fr> <87shbg1fhl.fsf@mat.ucm.es> <87fu7g3z95.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYfeZ-0007DH-Hp for emacs-orgmode@gnu.org; Mon, 08 Jan 2018 17:12:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYfeU-0001zB-OP for emacs-orgmode@gnu.org; Mon, 08 Jan 2018 17:12:23 -0500 Received: from [195.159.176.226] (port=47596 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYfeU-0001yY-Go for emacs-orgmode@gnu.org; Mon, 08 Jan 2018 17:12:18 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eYfcN-0006r8-5i for emacs-orgmode@gnu.org; Mon, 08 Jan 2018 23:10:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org > Uwe Brauer writes: > You don't need to. These are only suggestions, the final format needs > not matching any item in this list. > Not really. See `org-table-export' docstring, last paragraph. > You could try (untested): > (defun my-format-timestamps (cell) > (org-quote-csv-field > (replace-regexp-in-string > org-ts-regexp-both > (lambda (m) > (if (not org-display-custom-times) (substring m 1 -1) > (let ((hours? (string-match-p "[0-9]+:[0-9]+" m))) > (format-time-string (funcall (if hours? #'cdr #'car) > org-time-stamp-custom-formats) > (org-parse-time-string m))))) > cell))) Thanks very much, but the outcome of that function for the table | <2017-12-19 Tue> | 189.09 € | | <2017-12-21 Wed> | 27.86 € | < 01.01.70 >,189.09 € < 01.01.70 >,27.86 € For all timestamp could expanded into the same string and the < > were left in place. Uwe