On Fri, Aug 21, 2026 at 04:14:29AM +0200, Vincent Lefevre wrote:
On 2026-08-20 17:26:01 -0400, Reed Underwood wrote:
Would it be preferable to just use gettimeofday (or another function that
guarantees subsecond precision) and use only the seconds?

gettimeofday is no longer in any standard. It was replaced by
clock_gettime. But anyway, it is not possible to know which clock
is the same as the one used for the filesystem. Since the value
will be compared to st_mtime from stat(), it is better to also
use stat() for the comparison.

I agree. This is all taking place during message composition, and generally the stamp is used for a file that has just been read. So there isn't likely to be much slowdown with taking a stat() for the file.

I've tried to reword the commit message. It's probably too verbose now, but better that than too terse, as it was. I'll send it out shortly for review. Please let me know if my wording is okay.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to