Summary
Returns the date and time the specified file was last written to.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- FileFunctions
Syntax
[Function("get-last-write-time")]
public DateTime GetLastWriteTime(string path)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
path | string | The file for which to obtain write date and time information. |
Return Value
Type | Description |
---|---|
DateTime | The date and time the specified file was last written to. |