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 02:41:40 +0200 Message-ID: <87bok0z517.fsf@googlemail.com> References: <87fw9cz56k.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341103222 1928 80.91.229.3 (1 Jul 2012 00:40:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2012 00:40:22 +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 02:40:21 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 1Sl8D6-0003h8-8Q for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2012 02:40:20 +0200 Original-Received: from localhost ([::1]:53220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl8D5-0007at-65 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 20:40:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl8Cz-0007ad-Li for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 20:40:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sl8Cx-0006Vo-Pe for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 20:40:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl8Cx-0006VP-Ip for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 20:40:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sl8Cv-0003Xw-9M for help-gnu-emacs@gnu.org; Sun, 01 Jul 2012 02:40:09 +0200 Original-Received: from e178057174.adsl.alicedsl.de ([85.178.57.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2012 02:40:09 +0200 Original-Received: from tjolitz by e178057174.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2012 02:40:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e178057174.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:jDX7zbYnDMGMqSIfOEesOCb679Q= 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:85595 Archived-At: Thorsten Jolitz writes: > Hi List, > the Elisp manual tells me about file-attributes: > > > 4. The time of last access, as a list of two integers. The > first integer has the high-order 16 bits of time, the > second has the low 16 bits. (This is similar to the value > of current-time; see Time of Day.) Note that on some > FAT-based filesystems, only the date of last access is > recorded, so this time will always hold the midnight of the > day of last access. > > 5. The time of last modification as a list of two integers (as > above). This is the last time when the file's contents were > modified. > > > If I want to compare the time of last modification of two files - how do > I do that, using these two integers? Ups, I just found the function 'file-newer-than-file-p' that solves my problem. Sorry for the noise. -- cheers, Thorsten