Skip to main content
FileHandle.utimes - fs/promises - Node documentation
method FileHandle.utimes

Usage in Deno

import { type FileHandle } from "node:fs/promises";
FileHandle.utimes(
atime: TimeLike,
mtime: TimeLike,
): Promise<void>

Change the file system timestamps of the object referenced by the FileHandle then fulfills the promise with no arguments upon success.

Parameters

atime: TimeLike
mtime: TimeLike

Return Type

Promise<void>