Whats the deal with the Matlab date number?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Star Strider
2014-2-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!