From: Thorsten Jolitz <tjolitz@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to compare time of last file modification?
Date: Sun, 01 Jul 2012 19:26:04 +0200 [thread overview]
Message-ID: <87a9zjs89f.fsf@googlemail.com> (raw)
In-Reply-To: m3vci7ss9z.fsf@stories.gnus.org
Lars Magne Ingebrigtsen <lmi@gnus.org> writes:
> Thorsten Jolitz <tjolitz@googlemail.com> 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
next prev parent reply other threads:[~2012-07-01 17:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3790.1341102956.855.help-gnu-emacs@gnu.org>
2012-07-01 1:16 ` How to compare time of last file modification? Pascal J. Bourguignon
2012-07-01 8:56 ` Thorsten Jolitz
2012-07-01 9:23 ` Michael Albinus
2012-07-01 10:13 ` Lars Magne Ingebrigtsen
2012-07-01 17:26 ` Thorsten Jolitz [this message]
[not found] ` <mailman.3833.1341163416.855.help-gnu-emacs@gnu.org>
2012-07-01 17:36 ` Pascal J. Bourguignon
2012-07-01 21:11 ` Lars Magne Ingebrigtsen
2012-07-01 19:48 ` Barry Margolin
2012-07-01 20:26 ` Thorsten Jolitz
2012-07-01 0:38 Thorsten Jolitz
2012-07-01 0:41 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9zjs89f.fsf@googlemail.com \
--to=tjolitz@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).