From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: 50 seconds is 1 hour? Date: Tue, 1 Dec 2009 18:34:40 +0100 Message-ID: References: <48322.130.55.118.19.1259688281.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259688962 3710 80.91.229.12 (1 Dec 2009 17:36:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 17:36:02 +0000 (UTC) Cc: Andreas Schwab , Emacs-Devel devel To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 01 18:35:55 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFWdd-00066Y-5h for ged-emacs-devel@m.gmane.org; Tue, 01 Dec 2009 18:35:45 +0100 Original-Received: from localhost ([127.0.0.1]:50581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFWdc-0001El-QP for ged-emacs-devel@m.gmane.org; Tue, 01 Dec 2009 12:35:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFWd2-0000yE-KR for emacs-devel@gnu.org; Tue, 01 Dec 2009 12:35:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFWcy-0000vw-3K for emacs-devel@gnu.org; Tue, 01 Dec 2009 12:35:08 -0500 Original-Received: from [199.232.76.173] (port=51877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFWcx-0000vp-Ry for emacs-devel@gnu.org; Tue, 01 Dec 2009 12:35:03 -0500 Original-Received: from mail-yw0-f172.google.com ([209.85.211.172]:42136) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFWcx-0002bA-Ep for emacs-devel@gnu.org; Tue, 01 Dec 2009 12:35:03 -0500 Original-Received: by ywh2 with SMTP id 2so4648058ywh.27 for ; Tue, 01 Dec 2009 09:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=2KhLnRiopHF/2wUdl3vtxujSPCdizpkgxJWqJ7/nd3Y=; b=m+rGFuJNr4IdqFIm5MdRUQO2UGzcnKYA+h1HdgMyn7AC3dQ/FfjYM2wLzrpbV7ycyQ +BthT1yBLZr2ReUJdAyDhuGhQa/wG4j8dnXkR4t52xxtAHpHcTb6d6Y0M/gST64WJVfQ +prQa2heQlv4j0IH3g8XIUfrfEqiiGMQThH7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=WuZyrn9O0/+eeahFBivbW+fb18dF4JXffbUTvroFcNoeMW9Xcs2av6nYmSUSKYSFX6 d1qnp7ZvC3E/KjGXwo8w9hJH0zTZjmx4oapsJgvhc6UlCA7i5IPRaIJEulPSajOojC8Y Y2JTQNgjZmwp9doCrM0OwYKRF0Gw6bjR9yo+E= Original-Received: by 10.100.243.34 with SMTP id q34mr2612603anh.150.1259688900159; Tue, 01 Dec 2009 09:35:00 -0800 (PST) In-Reply-To: <48322.130.55.118.19.1259688281.squirrel@webmail.lanl.gov> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118039 Archived-At: On Tue, Dec 1, 2009 at 6:24 PM, Davis Herring wrote: > > Clearly, extending it to handle all this would interfere terribly with it= s > correct usage. =C2=A0So, no. =C2=A0Perhaps you'd like to specify an inter= face for > the function you'd really like to have? =C2=A0I'd be willing to write it = if I > knew what exactly you wanted it to return. =C2=A0(For instance, should it= omit > fields that are 0? =C2=A0That is, without varying any formatting argument= s that > it might have, should it be able to return "5:34" and "1:00:31" for 334 > and 3631 seconds?) I am just trying to get a human readable output of the result of (time-subtract ...). I use it for elapsed time. Clearly for such usage the output could in a strict sense contain only days, hours, minutes, seconds Making a good general function for that seems perhaps a bit tricky since you may both want to leave out things from the beginning of this list and specify a format for them. But maybe it can take four optional format arguments in the reverse order of this list?