1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 20:57:12 +01:00
metamask-extension/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/time-remaining/time-remaining.utils.js

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,
}