Seconds counter within a day?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
pavlos
le 3 Fév 2016
Réponse apportée : Walter Roberson
le 3 Fév 2016
Hello,
Please help me with the following:
I need to count the seconds from one period to another within a day.
For example,
the start point would be 00:00:01
and the final point would be (for example)
18:06:00
Thank you.
Best,
Pavlos
0 commentaires
Réponse acceptée
Walter Roberson
le 3 Fév 2016
t = datenum('18:06:00') - datenum('00:00:01');
seconds = t * 24 * 60 * 60;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!