Convert Serial numbers to conventional date
Mostrar comentarios más antiguos
Hi,
I would like to convert these serial number 17067072 to conventional date such as mm-dd-yyyy.
I have a column vector of such dates to convert. I downloaded data in netCDF format, converted to ASCII and now have to convert the dates for easy interpretation.
I could convert using 'datestr' but my dates have 8 values as above.
I appreciate your effort.
Thanks.
1 comentario
ASONG ZILEFAC
el 4 de Nov. de 2012
Respuesta aceptada
Más respuestas (1)
per isakson
el 4 de Nov. de 2012
Editada: per isakson
el 5 de Nov. de 2012
NetCDF files are supposed to be self-documented. Is it "serial hour numbers"?
>> datestr( 17067072, 31 )
ans =
6728-01-21 00:00:00
>> datestr( 17067072/24, 31 )
ans =
1947-01-01 00:00:00
2 comentarios
ASONG ZILEFAC
el 5 de Nov. de 2012
Walter Roberson
el 5 de Nov. de 2012
Try it and see.
Categorías
Más información sobre Dates and Time 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!