Typescript timestamp get milliseconds -


in typescript project response containing timestamps looks this:

  • +049235-10-18t04:13:50.000z

this timestamp can convert localestring looks this:

  • 7.4.2017, 14:29:17

i want difference between 2 timestamps in seconds. time differrence between 2 timestamps can few seconds or days. there solution in typescript?

use moment.js (http://momentjs.com/)

moment().subtract(object); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -