I have two date:
const a = moment(start)
const b = moment(end)
where for example: a "2022-03-22T09:00:00.000Z" b "2022-03-22T09:30:00.000Z"
Now I'm interested to calculate only difference about time.
So for example if I do moment.duration(b.diff(a))) i obtain PM30
But what I would to obtain is the difference like:
`a "2022-03-22T09:00:00.000Z" b "2022-03-22T09:30:00.000Z"` => b - a = 0.5
`a "2022-03-22T09:00:00.000Z" b "2022-03-22T10:30:00.000Z"` => b - a = 1.5
How can I do?