Question: how to calculate time difference in typescript?
Answer: var t = +(new Date()) - +(new Date("2013-02-20T12:01:04.753Z")); See discussion here. From there you can make a formula to convert the difference to minutes or hours .