UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

14 lines 436 B
/** * Returns the end of a second for the given datetime * @param dt datetime object which includes time info * @returns Temporal object which represents the end of the second */ export function endOfSecond(dt) { // assumption: no sub-second offset transition in timezone database return dt.with({ millisecond: 999, microsecond: 999, nanosecond: 999, }); } //# sourceMappingURL=endOfSecond.js.map