Skip to main content
Module

x/deno/js/utime.ts>utimeSync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function utimeSync
import { utimeSync } from "https://deno.land/x/deno@v0.17.0/js/utime.ts";

Synchronously changes the access and modification times of a file system object referenced by filename. Given times are either in seconds (Unix epoch time) or as Date objects.

  Deno.utimeSync("myfile.txt", 1556495550, new Date());

Parameters

filename: string
atime: number | Date
mtime: number | Date