@toreda/time
Version:
Simple, small footprint library for common time operations and converting between units of time.
15 lines (14 loc) • 379 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.years = years;
const make_1 = require("./time/make");
/**
* Create Time object in 'years'
* @param initial Object's initial value (in years).
* @returns Time object
*
* @category Time Conversions
*/
function years(initial, log) {
return (0, make_1.timeMake)('y', initial, log);
}