mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 12:47:14 +01:00
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
function getTimeBreakdown (milliseconds) {
|
|
return {
|
|
hours: Math.floor(milliseconds / 3600000),
|
|
minutes: Math.floor((milliseconds % 3600000) / 60000),
|
|
seconds: Math.floor((milliseconds % 60000) / 1000),
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
getTimeBreakdown,
|
|
}
|