how to read the timestamp of file

18 ビュー (過去 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 Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by