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