how to read the timestamp of file

조회 수: 17 (최근 30일)
Mary
Mary 2013년 1월 30일
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

채택된 답변

Jan
Jan 2013년 1월 30일
편집: Jan 2013년 1월 30일
Do you mean the date of the last file access?
D = dir('*.xls');
TimeStamp = {D.date};
% Or:
TimeStamp = [D.datenum];
  댓글 수: 7
Mary
Mary 2013년 2월 6일
Hi Jan. Thanks again. Do you know how I can get the filename suffice?
Jan
Jan 2013년 2월 6일
What does "the filename suffice" mean?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by