how to find current time in millis

24 次查看(过去 30 天)
how to find current time in millis in matlab

回答(1 个)

Rik
Rik 2021-2-9
datestr(now,'yyyy/mm/dd HH:MM:SS.FFF')
ans = '2021/02/09 12:28:19.679'
  3 个评论
Walter Roberson
Walter Roberson 2021-6-8
编辑:Walter Roberson 2021-6-8
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 2021-6-9
@Walter Roberson yes. this is what I'm talking about. thank you so much Sir.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by