-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
fs.utimes arguments documentation #8638
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
Description
Activity
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
Could the documentation of
fs.utimes(It says the type is Integer, and NaN or Infinity, will be converted toDate.now()) be more clear about the arguments? It looks like I can passnew Date(), butDate.now()needs to be divided by 1000. According to MDNDate.prototype.valueOf()andDate.now()both return: "The number of milliseconds between 1 January 1970 00:00:00 UTC and the given date.". It would be nice if the documentation mentioned that if the value is an Integer, it will be handled as a timestamp with precision of seconds.Output