Whats the deal with the Matlab date number?

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.

Answers (1)

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.’

Asked:

on 22 Feb 2014

Answered:

on 22 Feb 2014

Community Treasure Hunt

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

Start Hunting!