Time remaining to Time (database)
timedata=Time input
nowtime=now time
timedata-nowtime
nowtime = 10:10 h.
timedata = 10:30 h.
10:30-10:10
Time remaining to Time (database)
timedata=Time input
nowtime=now time
timedata-nowtime
nowtime = 10:10 h.
timedata = 10:30 h.
10:30-10:10
Your post is not clear. What is your goal?
You will need to get the current time etc.
https://www.w3schools.com/jsref/jsref_gettime.asp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime
If you read the latter link above then you will find an example on this page for time difference…
Measuring execution time
Subtracting two subsequent getTime() calls on newly generated Date objects, give the time span between these two calls. This can be used to calculate the executing time of some operations. See also Date.now() to prevent instantiating unnecessary Date objects.
var end, start;
start = new Date();
for (var i = 0; i < 1000; i++) {
Math.sqrt(i);
}
end = new Date();
console.log('Operation took ' + (end.getTime() - start.getTime()) + ' msec');
Wix does a simple tutorial for getting the current date, so you could look at using that to get the current time too.
https://support.wix.com/en/article/corvid-tutorial-displaying-todays-date-with-code
Note that this is set to display the date in the users local date string, so you will have to set the time to be displayed as locale time string too.
Also, this has been asked before on Stack and here are some links that you can read, although note that some of these replies will not be able to be simply copied and pasted into Wix code panel as they will not work.
You can also look at using the Momentjs which is available as a npm in Wix Package Manager.
https://momentjs.com/
https://momentjs.com/docs/