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

x/pup/plugins/web-interface/static/js/helpers.js>timeAgo

Universal process manager built in Deno
Go to Latest
function timeAgo
import { timeAgo } from "https://deno.land/x/pup@1.0.0-rc.4/plugins/web-interface/static/js/helpers.js";

Calculate the difference between a given date and the current date and format the difference as a string.

Parameters

date
  • The date to compare with the current date.