DirectoryFunctions.

GetLastWriteTime(string) Method

Summary

Returns the date and time the specified directory was last written to.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
DirectoryFunctions

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 directory for which to obtain write date and time information.

Return Value

Type Description
DateTime The date and time the specified directory was last written to.