From: "Eddward DeVilla" <eddward@gmail.com>
To: Cecil Westerhof <CecilWesterhof@xs4all.nl>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Making a list to string
Date: Wed, 11 Jul 2007 16:59:07 -0500 [thread overview]
Message-ID: <b71b18520707111459r27a360b2w814fe9d1f93ea362@mail.gmail.com> (raw)
In-Reply-To: <b71b18520707111454n1056f1aci6798bee373c7943@mail.gmail.com>
I take that back. I think it is right. I thought hard coded and
frodatum were supposed to match. Unfortunately, it looks like the
mailed mangles the formula line.
On 7/11/07, Eddward DeVilla <eddward@gmail.com> wrote:
> Is this any better. I don't think it's entirely right yet.
>
> |---+------------+------------+------------+------------|
> | | datum | from datum | hard coded | |
> |---+------------+------------+------------+------------|
> | # | 2007-01-01 | 1 | 1 | 2007-01-01 |
> | # | 2007-07-09 | 190 | 190 | 2007-07-09 |
> | # | 2007-07-11 | 192 | 192 | 2007-07-11 |
> | # | 2007-09-11 | 254 | 1 | 2007-09-11 |
> | # | 20071012 | 192 | 1 | 20071012 |
> |---+------------+------------+------------+------------|
> #+TBLFM: $3='(time-to-day-in-year (org-read-date t t (concat
> $2)))::$5='(concat $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
>
>
> On 7/11/07, Cecil Westerhof <CecilWesterhof@xs4all.nl> wrote:
> > 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>
> >
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>
next prev parent reply other threads:[~2007-07-11 21:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b71b18520707111459r27a360b2w814fe9d1f93ea362@mail.gmail.com \
--to=eddward@gmail.com \
--cc=CecilWesterhof@xs4all.nl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).