vremel
Version:
JavaScript date utility library for Temporal API
10 lines • 309 B
JavaScript
/**
* Returns an integer of seconds from Unix epoch until the exact time which the given temporal object represents.
*
* @param dt Temporal object
* @returns epoch seconds
*/
export function epochSeconds(dt) {
return Math.floor(dt.epochMilliseconds / 1000);
}
//# sourceMappingURL=epochSeconds.js.map