@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
12 lines (11 loc) • 317 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setStartOfSecond = void 0;
/**
* Takes a given date and mutates it to the start of the given second
*/
function setStartOfSecond(date) {
date.setMilliseconds(0);
return date;
}
exports.setStartOfSecond = setStartOfSecond;