阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js fsPromises.utimes

      Node.js fsPromises.utimes(path, atime, mtime)

      新增于: v10.0.0

      • path < string> | < Buffer> | < URL>
      • atime < number> | < string> | < Date>
      • mtime < number> | < string> | < Date>
      • Returns:

      Change the file system timestamps of the object referenced by path then resolves the Promise with no arguments upon success.

      The atime and mtime arguments follow these rules:

      • Values can be either numbers representing Unix epoch time, Dates, or a numeric string like ‘123456789.0’.
      • If the value can not be converted to a number, or is NaN, Infinity or -Infinity, an Error will be thrown.

      更多内容请参考:Node.js fs 文件系统,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录