Node fs.promises.utimes function | API Reference | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:fs/promises/
utimesFutimes
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:fs/promises/
utimesFutimes
function
fs.promises.utimesfunction
utimes(path:
PathLike,atime:
TimeLike,mtime:
TimeLike): Promisevoid>;
Change the file system timestamps of the object referenced by path.
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.@returns
Fulfills with undefined upon success.
Referenced typestype
PathLike = string |
Buffer |
URLValid types for path values in "fs".
type
TimeLike = string | number | Date
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →