On my machine, using Matlab R2014a, datevec(datenum(x)) produces result different from x:
>> datevec(datenum([2007, 4, 1, 30, 0, 0]))
ans =
2007 4 2 6 0 0
Is this a bug, or am I doing something wrong?

 채택된 답변

Mischa Kim
Mischa Kim 2015년 6월 2일

2 개 추천

Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Time Series Objects에 대해 자세히 알아보기

질문:

2015년 6월 2일

댓글:

2015년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by