UNPKG

@toreda/time

Version:

Simple, small footprint library for common time operations and converting between units of time.

11 lines (10 loc) 270 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeSince = void 0; const now_1 = require("./now"); function timeSince(time) { const now = (0, now_1.timeNow)(); now.sub(time); return now; } exports.timeSince = timeSince;