Seconds counter within a day?

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by