From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: How to get hours from hh:mm Date: Sat, 16 Jun 2007 17:52:19 +0200 Organization: Organization?!? Message-ID: <85k5u3nbgs.fsf@lola.goethe.zz> References: <467136b6$0$69886$e4fe514c@news.xs4all.nl> <878xamk6bb.fsf@thalassa.lan.informatimago.com> <46714963$0$328$e4fe514c@news.xs4all.nl> <873b0uie6z.fsf@thalassa.lan.informatimago.com> <4673fd78$0$326$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1182012075 21310 80.91.229.12 (16 Jun 2007 16:41:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 16:41:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 18:41:14 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzbKo-0004Yl-Ki for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 18:41:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzbKo-0001dd-7h for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 12:41:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!news.n-ix.net!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:NLetW75GyKTAed6vJSYWbEvjgls= Original-Lines: 36 Original-NNTP-Posting-Date: 16 Jun 2007 17:52:48 CEST Original-NNTP-Posting-Host: 3aebf4d3.newsspool4.arcor-online.net Original-X-Trace: DXC=TbJ]\T_WLZ7nBOkdL^Lo7>4IUK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45117 Archived-At: Cecil Westerhof 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