Azzera filtri
Azzera filtri

Seconds counter within a day?

1 visualizzazione (ultimi 30 giorni)
pavlos
pavlos il 3 Feb 2016
Risposto: Walter Roberson il 3 Feb 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

Risposta accettata

Walter Roberson
Walter Roberson il 3 Feb 2016
t = datenum('18:06:00') - datenum('00:00:01');
seconds = t * 24 * 60 * 60;

Più risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by