From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: How to compare time of last file modification? Date: Sun, 01 Jul 2012 19:26:04 +0200 Message-ID: <87a9zjs89f.fsf@googlemail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341163420 5434 80.91.229.3 (1 Jul 2012 17:23:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2012 17:23:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 01 19:23:40 2012 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 1SlNs3-0007Zt-P4 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2012 19:23:39 +0200 Original-Received: from localhost ([::1]:42826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlNs2-0002RJ-Kf for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2012 13:23:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlNrv-0002RB-7D for help-gnu-emacs@gnu.org; Sun, 01 Jul 2012 13:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlNrr-0000up-00 for help-gnu-emacs@gnu.org; Sun, 01 Jul 2012 13:23:30 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlNrq-0000ui-PB for help-gnu-emacs@gnu.org; Sun, 01 Jul 2012 13:23:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SlNro-000766-HE for help-gnu-emacs@gnu.org; Sun, 01 Jul 2012 19:23:24 +0200 Original-Received: from e178117094.adsl.alicedsl.de ([85.178.117.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2012 19:23:24 +0200 Original-Received: from tjolitz by e178117094.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2012 19:23:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e178117094.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:hku9HrDmdvwEQrOWTw3xUnvTbq0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85605 Archived-At: Lars Magne Ingebrigtsen writes: > Thorsten Jolitz writes: > >> If I want to compare the time of last modification of two files - how do >> I do that, using these two integers? > > Use `time-less-p': > > time-less-p is a compiled Lisp function in `time-date.el'. > > (time-less-p T1 T2) > > Return non-nil if time value T1 is earlier than time value T2. Thanks to everybody for several solutions. Is there a reason to prefer time-less-p or the custom-made solutions over file-newer-than-file-p? -- cheers, Thorsten