Skip to main content
Module

x/ddc_vim/deps.ts>fn.getftime

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.getftime
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { getftime } = fn;

The result is a Number, which is the last modification time of the given file {fname}. The value is measured as seconds since 1st Jan 1970, and may be passed to strftime(). See also localtime() and strftime(). If the file {fname} can't be found -1 is returned.

Can also be used as a method:

GetFilename()->getftime()

Parameters

denops: Denops
fname: unknown

Returns

Promise<number>