how to find current time in millis

14 Ansichten (letzte 30 Tage)
Gaurav Shetty
Gaurav Shetty am 9 Feb. 2021
Kommentiert: Ni Rui Cheng am 9 Jun. 2021
how to find current time in millis in matlab

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by