UNPKG

internetmarke

Version:

A node implementation to use the Internetmarke web service of Deutsche Post.

12 lines (11 loc) 342 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatDate = void 0; const formatDate = (date) => { const timestamp = (date || new Date()).toISOString().split('T'); return { date: timestamp[0], time: `${timestamp[1].substr(0, 12)}+00:00` }; }; exports.formatDate = formatDate;