UNPKG

@toreda/time

Version:

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

15 lines (14 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.seconds = seconds; const make_1 = require("./time/make"); /** * Create Time object in 'seconds' * @param initial Object's initial value (in seconds). * @returns Time object * * @category Time Conversions */ function seconds(initial, log) { return (0, make_1.timeMake)('s', initial, log); }