Is there an API from where I can get the current time? And is it possible to know the difference between one time and the other?
I use two handlers (like this: https://gist.github.com/jesmin-n/cc369469e6552fff7002) , and then get the values onTimeUpdated like this:
var date = new Date();
var hour = String( date.getHours() );
Hope this helps!
© 2015 Marvell · Privacy