Anonymous user
File modification time: Difference between revisions
Updated D entry
m (→{{header|Go}}: library change) |
(Updated D entry) |
||
Line 332:
=={{header|D}}==
<lang d>import std.stdio;
void main() {
auto fname = "unixdict.txt";
SysTime fileAccessTime, fileModificationTime;
getTimes(fname, fileAccessTime, fileModificationTime);
writeln(fileAccessTime, "\n", fileModificationTime);
setTimes(fname, fileAccessTime, fileModificationTime);
}</lang>
For Windows systems there is also getTimesWin(), that gives the file creation time too.
=={{header|Delphi}}==
|