From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get hours from hh:mm
Date: Sat, 16 Jun 2007 17:52:19 +0200 [thread overview]
Message-ID: <85k5u3nbgs.fsf@lola.goethe.zz> (raw)
In-Reply-To: 4673fd78$0$326$e4fe514c@news.xs4all.nl
Cecil Westerhof <dummy@dummy.nl> writes:
> Alexis Roda wrote:
>> Something like this could be helpful:
>>
>> (defun time100(time)
>> (let ((timelist (split-string time ":")))
>> (+ (string-to-number (car timelist))
>> (/ (string-to-number (cadr timelist))
>> 60.0))))
>
> I tried this:
>
> (defun getMinutes(time)
> (interactive "sDuration: ")
> (let ((timelist (split-string time ":")))
> (+
> (string-to-number (car timelist))
> (/
> (string-to-number (cadr timelist))
> 60.0
> )
> )
> )
> )
>
> When I dan give M-x getMinutes and on the prompt give: 00:18, I get:
> Symbol's function definition is void: let
Never cut&paste code from articles with KNode. It randomly peppers
material with non-breakable spaces.
Get a real newsreader, like Gnus.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-06-16 15:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 12:38 How to get hours from hh:mm Cecil Westerhof
2007-06-14 13:35 ` Pascal Bourguignon
2007-06-14 13:57 ` Cecil Westerhof
2007-06-14 18:27 ` Pascal Bourguignon
2007-06-14 19:06 ` Alexis Roda
[not found] ` <mailman.2173.1181847997.32220.help-gnu-emacs@gnu.org>
2007-06-16 15:10 ` Cecil Westerhof
2007-06-16 15:32 ` Cecil Westerhof
2007-06-16 15:41 ` Joost Kremers
2007-06-16 15:52 ` David Kastrup [this message]
2007-06-16 17:28 ` Cecil Westerhof
2007-06-16 16:16 ` Stephen Berman
2007-06-14 20:15 ` J. David Boyd
[not found] ` <mailman.2178.1181852166.32220.help-gnu-emacs@gnu.org>
2007-06-15 5:52 ` Pascal Bourguignon
2007-06-15 6:06 ` cmr.Pent
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85k5u3nbgs.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=help-gnu-emacs@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 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.