display current time in minutes

4 vues (au cours des 30 derniers jours)
AA
AA le 25 Août 2017
Réponse apportée : Guillaume le 25 Août 2017
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

Réponse acceptée

Guillaume
Guillaume le 25 Août 2017
hour(datetime)*60
or
hour(datetime)*60 + minute(datetime)
if you want to add the minutes.

Plus de réponses (0)

Catégories

En savoir plus sur Clocks and Timers dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by