NaN、Infinity 和 -Infinity 不再是有效的时间说明符。
NaN
Infinity
-Infinity
参数 path 可以是使用 file: 协议的 WHATWG URL 对象。
path
file:
URL
现在允许使用数字字符串、NaN 和 Infinity 作为时间说明符。
新增于: v0.4.2
path <string> | <Buffer> | <URL>
atime <number> | <string> | <Date>
atime
mtime <number> | <string> | <Date>
mtime
返回 undefined。
undefined
¥Returns undefined.
有关详细信息,请参阅此 API 的异步版本的文档:fs.utimes()。
fs.utimes()
¥For detailed information, see the documentation of the asynchronous version of this API: fs.utimes().