Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.10/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.