DateTime conversion from Table Column
Ältere Kommentare anzeigen
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 Kommentar
Asad (Mehrzad) Khoddam
am 17 Sep. 2020
Is it Unix time stamp? or simply ticks
Akzeptierte Antwort
Weitere Antworten (2)
Djamil Boulahbal
am 17 Sep. 2020
0 Stimmen
1 Kommentar
Star Strider
am 17 Sep. 2020
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.
Djamil Boulahbal
am 17 Sep. 2020
0 Stimmen
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!