all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making a list to string
@ 2007-07-11 20:43 Cecil Westerhof
  2007-07-11 21:54 ` Eddward DeVilla
  0 siblings, 1 reply; 7+ messages in thread
From: Cecil Westerhof @ 2007-07-11 20:43 UTC (permalink / raw)
  To: org-mode

I have the following table:
        |---+------------+---------------------------+------------+------------------------------------------|
        |   |      datum |                from datum | hard coded |                                          |
        |---+------------+---------------------------+------------+------------------------------------------|
        | # | 2007-01-01 |                       192 |          1 | [50, 48, 48, 55, 45, 48, 49, 45, 48, 49] |
        | # | 2007-07-09 |                       192 |        190 | [50, 48, 48, 55, 45, 48, 55, 45, 48, 57] |
        | # | 2007-07-11 |                       192 |        192 | [50, 48, 48, 55, 45, 48, 55, 45, 49, 49] |
        | # | 2007-09-11 |                       192 |          1 | [50, 48, 48, 55, 45, 48, 57, 45, 49, 49] |
        | # |   20071012 |                       192 |          1 | [50, 48, 48, 55, 49, 48, 49, 50]         |
        |---+------------+---------------------------+------------+------------------------------------------|
        #+TBLFM: $3='(time-to-day-in-year (org-read-date t t "$2"));N::$5="$2"::@2$4='(time-to-day-in-year (org-read-date t t "2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t "2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t "2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t "2007-01-01"));N::

The column 'from datum' does not get the right values. The last column
shows why. "$2" gives a list of ASCII values of the string instead of
the string. This makes that org-read-data gets 50 as a parameter instead
of the string representing a date. How do I convert this list back to
the string it is representing?

-- 
Cecil Westerhof <CecilWesterhof@xs4all.nl>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-13 13:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-11 20:43 Making a list to string Cecil Westerhof
2007-07-11 21:54 ` Eddward DeVilla
2007-07-11 21:59   ` Eddward DeVilla
2007-07-12  5:23     ` Cecil Westerhof
2007-07-12  6:04       ` Eddward DeVilla
2007-07-12  6:10         ` Cecil Westerhof
2007-07-13 13:47       ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.