-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
fs.utimes arguments documentation #8638
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
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