Function to calculate seconds between times in hh:mm:ss string format
Mostra commenti meno recenti
I want to create a function that takes two strings as inputs, tref and t, and computes and returns the number of seconds until t since tref. Both tref and t are strings in the format hh:mm:ss.
For example
function_name('20:00:00','22:53:44')
should return
10424
And for simplicity, I want to require that hour, minute, and second values in t are greater than or equal to hour, minute, and second values in tref, respectively. Is there any way to do this without any built in matlab time/date functions?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!