From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: How to get time difference with Elisp? Date: Tue, 12 Jul 2016 14:25:55 +0200 Message-ID: <20160712122555.GB28081@tuxteam.de> References: <2016-07-12T12-41-55@devnull.Karl-Voit.at> <20160712111409.GA25909@tuxteam.de> <2016-07-12T13-44-31@devnull.Karl-Voit.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: ger.gmane.org 1468327228 17857 80.91.229.3 (12 Jul 2016 12:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 12:40:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 14:40:27 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMwz8-00004t-SK for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 14:40:23 +0200 Original-Received: from localhost ([::1]:40116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMwz7-0000cO-UF for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 08:40:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMwlH-0001w5-Pm for help-gnu-emacs@gnu.org; Tue, 12 Jul 2016 08:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMwlE-0008NC-89 for help-gnu-emacs@gnu.org; Tue, 12 Jul 2016 08:26:03 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:60082 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMwlE-0008Mx-2e for help-gnu-emacs@gnu.org; Tue, 12 Jul 2016 08:26:00 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1bMwl9-0007Nl-Tk for help-gnu-emacs@gnu.org; Tue, 12 Jul 2016 14:25:55 +0200 In-Reply-To: <2016-07-12T13-44-31@devnull.Karl-Voit.at> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110791 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jul 12, 2016 at 01:48:39PM +0200, Karl Voit wrote: [...] > Is it just me or is this really just a matter of minutes to > implement in *any* other language? :-) Only if you are really at home in that language (and if you are willing to take some shortcuts: what time, exactly, is 14:49? Today? Yesterday?). Note that my sketch above would work with fully-specified times too. And I'm sure someone knowing her ways with elisp's time functions will find a much nicer solution that the one I proposed. regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAleE4dMACgkQBcgs9XrR2kY6qgCfcN/NaPAsrHO/ZJFUSxY52Wqu qDUAn2nGb7ePE+IpCTEFrB4S3opbFTn1 =fUeq -----END PGP SIGNATURE-----