diff --git a/doc/api/fs.md b/doc/api/fs.md index 246cac31ef75a3..4dd4ae768faf7d 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3903,7 +3903,7 @@ These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, the numeric values in these objects are specified as `BigInt`s. To be notified when the file was modified, not just accessed, it is necessary -to compare `curr.mtime.getTime()` and `prev.mtime.getTime()`. +to compare `curr.mtimeMs` and `prev.mtimeMs`. When an `fs.watchFile` operation results in an `ENOENT` error, it will invoke the listener once, with all the fields zeroed (or, for dates, the