"dir" command gives wrong modification date

I am trying to get the modification time for a list of files that are contained in a single directory using the command "dir".
For each file I get a structure containing the modification date (string and number), but it doesnt match the modification time given by Window OS (as shown in explorer) of the modification time written inside the files itself - there is exatcly one hour shift.
What can cause it?

3 comentarios

per isakson
per isakson el 15 de Mzo. de 2018
I cannot reproduce this on Win7, R2016a
Ricardo Rodriguez
Ricardo Rodriguez el 16 de Feb. de 2021
Did this ever get solved?
Cris LaPierre
Cris LaPierre el 16 de Feb. de 2021
I'm also not able to reproduce, but any time I encounter a 1 hour time difference in a computer, I suspect it has something to do with daylight savings time.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Mzo. de 2018

Comentada:

el 16 de Feb. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by