pswincom-gateway-typed
Version:
Send SMS messages through LINK Mobility / PSWinCom Gateway, TypeScript version.
14 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dateToTimestamp = void 0;
const dateToTimestamp = (date) => {
return [
date.getFullYear(), // YYYY
('0' + (date.getMonth() + 1)).slice(-2), // MM
('0' + date.getDate()).slice(-2), // DD
('0' + date.getHours()).slice(-2), // HH
('0' + date.getMinutes()).slice(-2), // mm
].join('');
};
exports.dateToTimestamp = dateToTimestamp;
//# sourceMappingURL=date-to-timestamp.js.map