DateTime conversion from Table Column
이전 댓글 표시
I have a table (from ASCII file) that has various information in it. The first column is a 'DateTime' and has units of 'ticks'. It is supposed to be a Long Integer, but when loaded in the table, it shows up in scientific notation (double). How do I force that to be an integer, at load time?
Then, the next question is how to convert a DateTime entry into something useful. There is the ConvertTo function in the financial toolbox, but I have no access to it.
댓글 수: 1
Asad (Mehrzad) Khoddam
2020년 9월 17일
Is it Unix time stamp? or simply ticks
채택된 답변
추가 답변 (2개)
Djamil Boulahbal
2020년 9월 17일
0 개 추천
댓글 수: 1
Star Strider
2020년 9월 17일
Those functions are available in core MATLAB.
Click on the link I posted. It will take you to the appropriate section of the datetime. documentation.
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!