FutimesSync
Bun

function

fs.utimesSync

function utimesSync(
path: PathLike,
atime: TimeLike,
mtime: TimeLike
): void;

Returns undefined.

For detailed information, see the documentation of the asynchronous version of this API: utimes.

Referenced types

type PathLike = string | Buffer | URL

Valid types for path values in "fs".

type TimeLike = string | number | Date