date format in parseDirListingForUnix in R2021b
Mostrar comentarios más antiguos
Hi Experts,
I got a result from my "dir" to my sftp with ServerLocale de_DE but it cant parse files with dates from beginning of months.
C:\Program Files\MATLAB\R2021b\toolbox\matlab\io\ftp\+matlab\+io\+ftp\parseDirListingForUnix.m errors due to
makeDate = "1-Okt-2022 00:10:00" which does not fit the format "dd-MMM-yyyy HH:mm:ss"
I see I cant change that code and cant change the server output.
Any suggestions? Thanks, Rafael
Respuesta aceptada
Más respuestas (1)
Piyush Dubey
el 30 de Mayo de 2023
1 voto
Hi Rafael,
To parse the date in a particular format, a shell script can be used in post processing the data just before the output is generated from the server in a Unix environment.
A pre-processing script or MATLAB function maybe used before performing further computations on data at the recipient server. “datestr” might be helpful.
Follow this documentation to learn more about “datestr”:
Hope this helps.
1 comentario
Rafael
el 14 de Mzo. de 2024
Categorías
Más información sobre JSON Format 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!