display current time in minutes

3 次查看(过去 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

采纳的回答

Guillaume
Guillaume 2017-8-25
hour(datetime)*60
or
hour(datetime)*60 + minute(datetime)
if you want to add the minutes.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by