FileFunctions.

GetCreationTime(string) Method

Summary

Returns the creation date and time of the specified file.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FileFunctions

Syntax

[Function("get-creation-time")]
public DateTime GetCreationTime(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 creation date and time information.

Return Value

Type Description
DateTime The creation date and time of the specified file.