(instance)
| 7 | } |
| 8 | |
| 9 | const padZoneStr = (instance) => { |
| 10 | const negMinutes = -instance.utcOffset() |
| 11 | const minutes = Math.abs(negMinutes) |
| 12 | const hourOffset = Math.floor(minutes / 60) |
| 13 | const minuteOffset = minutes % 60 |
| 14 | return `${negMinutes <= 0 ? '+' : '-'}${padStart(hourOffset, 2, '0')}:${padStart(minuteOffset, 2, '0')}` |
| 15 | } |
| 16 | |
| 17 | const monthDiff = (a, b) => { |
| 18 | // function from moment.js in order to keep the same result |
no test coverage detected