display current time in minutes
1 回表示 (過去 30 日間)
古いコメントを表示
hi, how can I display current time as a multiple of 60, meaning 1 o clock is displayed as 60, 2 o clock as 120, 3 o clock as 180 and so on. I know if i type in clock then i get the current time but the further conversion is difficult.
thanks
0 件のコメント
採用された回答
Guillaume
2017 年 8 月 25 日
hour(datetime)*60
or
hour(datetime)*60 + minute(datetime)
if you want to add the minutes.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!