(secondsSinceMidnight: number)
| 163 | }; |
| 164 | |
| 165 | export const parseSeconds = (secondsSinceMidnight: number) => { |
| 166 | const hours = Math.floor(secondsSinceMidnight / 3600), |
| 167 | minutes = (secondsSinceMidnight - hours * 3600) / 60; |
| 168 | return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60]; |
| 169 | }; |
| 170 | |
| 171 | export const duration = { |
| 172 | DAY: 86400000, |
no outgoing calls
no test coverage detected
searching dependent graphs…