[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get hours from hh:mm
From: |
David Kastrup |
Subject: |
Re: How to get hours from hh:mm |
Date: |
Sat, 16 Jun 2007 17:52:19 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
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
- How to get hours from hh:mm, Cecil Westerhof, 2007/06/14
- Re: How to get hours from hh:mm, Pascal Bourguignon, 2007/06/14
- Re: How to get hours from hh:mm, Cecil Westerhof, 2007/06/14
- Re: How to get hours from hh:mm, Pascal Bourguignon, 2007/06/14
- Re: How to get hours from hh:mm, Alexis Roda, 2007/06/14
- Message not available
- Re: How to get hours from hh:mm, Cecil Westerhof, 2007/06/16
- Re: How to get hours from hh:mm, Cecil Westerhof, 2007/06/16
- Re: How to get hours from hh:mm, Stephen Berman, 2007/06/16
- Re: How to get hours from hh:mm, Joost Kremers, 2007/06/16
- Re: How to get hours from hh:mm,
David Kastrup <=
- Re: How to get hours from hh:mm, Cecil Westerhof, 2007/06/16
- Re: How to get hours from hh:mm, J. David Boyd, 2007/06/14
- Message not available
- Re: How to get hours from hh:mm, Pascal Bourguignon, 2007/06/15
- Re: How to get hours from hh:mm, address@hidden, 2007/06/15