Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.getftime

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.getftime
import { fn } from "https://deno.land/x/ddc_vim@v4.0.0/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>