필터 지우기
필터 지우기

Any command that allows to see any file's last modification date?

조회 수: 43 (최근 30일)
Mauro Colombano
Mauro Colombano 2023년 4월 3일
답변: Neha 2023년 4월 4일
Hello, I would need a Matlab command that allows me to see the last date of modification of my files: that would be needed by me to be able to create a routine that select files whose saving in a repository server is suggested. Thanks for your answers!

채택된 답변

Neha
Neha 2023년 4월 4일
It is my understanding that you need to find the last modified date of a given file. You can refer the code given below.
dnum=dir(fileName).datenum; % Modification Date as serial number
dtime=datetime(dnum,'ConvertFrom','datenum');
Please refer to the list folder contents documentation for more information on examples and arguments of the dir command.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by