@grafana/faro-core
Version:
Core package of Faro.
16 lines • 528 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.timestampToIsoString = exports.getCurrentTimestamp = exports.dateNow = void 0;
function dateNow() {
return Date.now();
}
exports.dateNow = dateNow;
function getCurrentTimestamp() {
return new Date().toISOString();
}
exports.getCurrentTimestamp = getCurrentTimestamp;
function timestampToIsoString(value) {
return new Date(value).toISOString();
}
exports.timestampToIsoString = timestampToIsoString;
//# sourceMappingURL=date.js.map