Function: visited-file-modtime
visited-file-modtime is a function defined in fileio.c.
Signature
(visited-file-modtime)
Documentation
Return the current buffer's recorded visited file modification time.
Return a Lisp timestamp (as in current-time) if the current buffer
has a recorded file modification time, 0 if it doesn't, and -1 if the
visited file doesn't exist.
See Info node (elisp)Modification Time for more details.
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/fileio.c
{
int ns = current_buffer->modtime.tv_nsec;
if (ns < 0)
return make_fixnum (UNKNOWN_MODTIME_NSECS - ns);
return make_lisp_time (current_buffer->modtime);
}