View source code
Display the source code in std/file.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function std.file.getTimesWin

This function is Windows-Only.

void getTimesWin(R) (
  R name,
  out SysTime fileCreationTime,
  out SysTime fileAccessTime,
  out SysTime fileModificationTime
)
if (isSomeFiniteCharInputRange!R || isConvertibleToString!R);

Get creation/access/modified times of file name.

This is the same as getTimes except that it also gives you the file creation time - which isn't possible on POSIX systems.

Parameters

NameDescription
name File name to get times for.
fileCreationTime Time the file was created.
fileAccessTime Time the file was last accessed.
fileModificationTime Time the file was last modified.

Throws

FileException on error.

Authors

Walter Bright, Andrei Alexandrescu, Jonathan M Davis

License

Boost License 1.0.