how to read the timestamp of file

17 visualizaciones (últimos 30 días)
Mary
Mary el 30 de En. de 2013
I have 10 files with extention (.csv). I need to read the timestamp of each file (unix timestamp) and save them in one column in text file. Any help is greatly appreciated

Respuesta aceptada

Jan
Jan el 30 de En. de 2013
Editada: Jan el 30 de En. de 2013
Do you mean the date of the last file access?
D = dir('*.xls');
TimeStamp = {D.date};
% Or:
TimeStamp = [D.datenum];
  7 comentarios
Mary
Mary el 6 de Feb. de 2013
Hi Jan. Thanks again. Do you know how I can get the filename suffice?
Jan
Jan el 6 de Feb. de 2013
What does "the filename suffice" mean?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by