Datenum function and conversion

13 vues (au cours des 30 derniers jours)
Kaique Silva
Kaique Silva le 15 Juin 2015
Modifié(e) : James Tursa le 15 Juin 2015
I am using the Datenum function in my code, and my instructor has asked me to use the data in milliseconds. The result of the Datenum is in days, correct? So, I just need to convert the result to miliseconds (1 day = 86400000 ms), am I right?

Réponse acceptée

James Tursa
James Tursa le 15 Juin 2015
Modifié(e) : James Tursa le 15 Juin 2015
Yes, datenum values are in days, and there are 86400000 ms in a day. So your conversion is correct. You might be interested in this related post:

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time 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