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!