Converting Excel Time to moment.js
问题 I have an Electron app where an Excel-Sheet with a couple of columns containing time values needs to be imported. In my app those values are converted in a loop to momentjs object for further manipulation: x['Time'] = moment(x['Time'], ['HH:mm','HH:mm:ss']).format('HH:mm:ss'); This works fine as long the Excel contains time values formatted as text. But if the Excel is set up the way it's meant to be, then the value of the Cell is a Number between 0 and 1 (Excel counts time internally as