How to Convert milliseconds to dd:mm:yyyy hh:mm:ss?
Mostrar comentarios más antiguos
I have rows that contains 'gregorian' Date and time for each observation in milliseconds since 1970-01-01 00:00:00.0 UTC.
How can I convert this millisecond into dd:mm:yyyy hh:mm:ss?
Respuesta aceptada
Más respuestas (2)
Megha
el 23 de Mayo de 2018
Walter Roberson
el 23 de Mayo de 2018
0 votos
You might be able to use datetime() with 'convertfrom', 'posixtime'
Or see https://www.mathworks.com/matlabcentral/answers/6117-convert-date-to-unix-time#answer_8508 for the opposite way, which you could then invert.
3 comentarios
Walter Roberson
el 23 de Mayo de 2018
>> datetime(1504224000,'convertfrom','posixtime')
ans =
01-Sep-2017 00:00:00
Megha
el 23 de Mayo de 2018
Categorías
Más información sobre Calendar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!