フィルターのクリア

Seconds counter within a day?

1 回表示 (過去 30 日間)
pavlos
pavlos 2016 年 2 月 3 日
回答済み: Walter Roberson 2016 年 2 月 3 日
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 Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by