Effacer les filtres
Effacer les filtres

Whats the deal with the Matlab date number?

2 vues (au cours des 30 derniers jours)
Franco
Franco le 22 Fév 2014
Ok, so I get that Matlab uses a number to denote the timestamp on an object. I know that the number gives the month day and year and the numbers after the decimal to the number are the hours minutes and seconds, but I'm really confused. How do the numbers after the decimal equivilate to the hours, minutes and seconds? Thanks.

Réponses (1)

Star Strider
Star Strider le 22 Fév 2014
According to Represent Dates and Times in MATLAB, the numbers after the decimal are fractions of a day.
Quoting:
‘MATLAB also uses serial time to represent fractions of days beginning at midnight; for example, 6 p.m. equals 0.75 serial days. So the string '31-Oct-2003, 6:00 PM' in MATLAB is date number 731885.75.’

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