From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Roda Newsgroups: gmane.emacs.help Subject: Re: How to get hours from hh:mm Date: Thu, 14 Jun 2007 21:06:31 +0200 Message-ID: <467191B7.8010001@gmail.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181848024 9277 80.91.229.12 (14 Jun 2007 19:07:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2007 19:07:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 14 21:07:02 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 1Hyuem-0001s9-RL for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2007 21:06:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyuem-0006ps-6I for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2007 15:06:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyueR-0006mc-3J for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 15:06:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyueP-0006l1-E7 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 15:06:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyueP-0006ky-AN for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 15:06:33 -0400 Original-Received: from ik-out-1112.google.com ([66.249.90.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HyueO-0004wY-Rz for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 15:06:33 -0400 Original-Received: by ik-out-1112.google.com with SMTP id c29so820883ika for ; Thu, 14 Jun 2007 12:06:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=dR99eyA0pW34SJ/C5x9Sy6C7KgSwJKaov3d9gbkgm9Aru8XJ9sEy80EtYD2K01WN4xBquHr/dDee9xS5r8XejrJHqu7Wxc/wpagZhW1DS4H9EprjwQ3KsDvu4G4Zn5lfpMoYdbLmQ5rOb+A67puvN2wO1myPDDqnO63YPRGYwVI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=K6aCGv/+TSFUK6qnTpyXmF1mGZiNSCVDyuypJVmic9UXxKq8FqwZ7k4Zx/LqUF50ShUBjbGB1RSpJklvRQyVGvF9XESTiwScc2bCvNt+Gk2FBZnzifwrlmV7JznOHPqjVGkgoHco0RWUMNkCIwK29IDjGdna5YJeqdD8fkYTSZo= Original-Received: by 10.78.193.5 with SMTP id q5mr859421huf.1181847989480; Thu, 14 Jun 2007 12:06:29 -0700 (PDT) Original-Received: from ?192.168.1.10? ( [83.45.187.193]) by mx.google.com with ESMTP id d23sm188009nfh.2007.06.14.12.06.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Jun 2007 12:06:28 -0700 (PDT) User-Agent: Mozilla Thunderbird 1.5.0.10 (X11/20070221) In-Reply-To: <873b0uie6z.fsf@thalassa.lan.informatimago.com> X-detected-kernel: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:45074 Archived-At: En/na Pascal Bourguignon ha escrit: > Cecil Westerhof writes: > >> Pascal Bourguignon wrote: >> >>> Cecil Westerhof writes: >>> >>>> I have a table in org-mode with time needed to travel from A to B an the >>>> number of km. I would like to get the average speed. How do I convert a >>>> time? For example 0:45 becomes 0.75. >>> How do you know that 0:45 becomes 0.75? >>> >>> How did you do it? >> I did not. I want. 0:45 is three quarters of an hour, so in mathematical >> notation 0.75. 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)))) HTH