diff options
author | Sam Potts <sam@potts.es> | 2020-06-27 21:59:35 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-10-19 22:27:16 +1100 |
commit | 9a69ae25993f8e2e6b30c2435aba98f779e129ad (patch) | |
tree | 5cb38a0518e9859f8eeb4c31c40d4c0f8e885af8 /src/js/utils/time.js | |
parent | 02321c35bc51e64a1f62611c73b8533ef7c3d7eb (diff) | |
download | plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.lz plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.xz plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.zip |
Linting changes
Diffstat (limited to 'src/js/utils/time.js')
-rw-r--r-- | src/js/utils/time.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/utils/time.js b/src/js/utils/time.js index 31660c4a..36e0d59b 100644 --- a/src/js/utils/time.js +++ b/src/js/utils/time.js @@ -5,9 +5,9 @@ import is from './is'; // Time helpers -export const getHours = value => Math.trunc((value / 60 / 60) % 60, 10); -export const getMinutes = value => Math.trunc((value / 60) % 60, 10); -export const getSeconds = value => Math.trunc(value % 60, 10); +export const getHours = (value) => Math.trunc((value / 60 / 60) % 60, 10); +export const getMinutes = (value) => Math.trunc((value / 60) % 60, 10); +export const getSeconds = (value) => Math.trunc(value % 60, 10); // Format time to UI friendly string export function formatTime(time = 0, displayHours = false, inverted = false) { @@ -17,7 +17,7 @@ export function formatTime(time = 0, displayHours = false, inverted = false) { } // Format time component to add leading zero - const format = value => `0${value}`.slice(-2); + const format = (value) => `0${value}`.slice(-2); // Breakdown to hours, mins, secs let hours = getHours(time); const mins = getMinutes(time); |