UNPKG

@netwerk-digitaal-erfgoed/ld-workbench

Version:

LDWorkbench is a Linked Data Transformation tool designed to use only SPARQL as transformation language.

10 lines 521 B
export default function formatDuration(startTime, endTime) { const durationInMilliseconds = endTime - startTime; const hours = Math.floor(durationInMilliseconds / 3600000); const minutes = Math.floor((durationInMilliseconds % 3600000) / 60000); const seconds = Math.floor((durationInMilliseconds % 60000) / 1000); return `${hours.toString().padStart(2, '0')}:${minutes .toString() .padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`; } //# sourceMappingURL=formatDuration.js.map