How to change the Date and Time of a Saved Script?

조회 수: 1 (최근 30일)
David Koenig
David Koenig 2015년 12월 9일
댓글: Walter Roberson 2016년 1월 5일
On older versions, when I saved a script it kept the most recent time and date. This allowed me to easily use Windows Explorer to move the most recently changed scripts to a backup disc each evening.
With version 15B I notice that if I change an existing script and save it, the script keeps its original time and date so when I look at the directory of scripts the most recently changed scripts are hard to find. Is there a way to modify the editor so that the current date and time are attached to the file when it is saved? Thanks.
  댓글 수: 3
Sudhanshu Bhatt
Sudhanshu Bhatt 2016년 1월 5일
편집: Sudhanshu Bhatt 2016년 1월 5일
Once the script is modified it should show the most recent time it was modified.
Is this behavior reproducible? Also, are other file types also showing the same behavior? I was not able to reproduce this behavior on Windows 7 64-bit and MAC OSX Yosemite.
If you experience this issue consistently, you can create a Technical Support Request .
Walter Roberson
Walter Roberson 2016년 1월 5일
Changes in modification time happen at the operating system level, and are part of the POSIX definition of the file I/O calls. A program would have to specifically change the times back (using utimes() or utime()) in order for there to be no change in the times.
It would be more likely that the file you are looking at was not the one being changed (or that the file you are looking at is a symbolic link to the file being changed)

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Adding custom doc에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by