[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to compare time of last file modification?
From: |
Thorsten Jolitz |
Subject: |
Re: How to compare time of last file modification? |
Date: |
Sun, 01 Jul 2012 19:26:04 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) |
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