how to find current time in millis

14 visualizaciones (últimos 30 días)
Gaurav Shetty
Gaurav Shetty el 9 de Feb. de 2021
Comentada: Ni Rui Cheng el 9 de Jun. de 2021
how to find current time in millis in matlab

Respuestas (1)

Rik
Rik el 9 de Feb. de 2021
datestr(now,'yyyy/mm/dd HH:MM:SS.FFF')
ans = '2021/02/09 12:28:19.679'
  3 comentarios
Walter Roberson
Walter Roberson el 8 de Jun. de 2021
Editada: Walter Roberson el 8 de Jun. de 2021
Milliseconds since what base time?
[h,m,s] = hms(datetime)
h = 19
m = 42
s = 58.3741
ms = round(s * 1000)
ms = 58374
Ni Rui Cheng
Ni Rui Cheng el 9 de Jun. de 2021
@Walter Roberson yes. this is what I'm talking about. thank you so much Sir.

Iniciar sesión para comentar.

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by