Whats the deal with the Matlab date number?
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Star Strider
on 22 Feb 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.’
0 Comments
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!