DateTimeFunctions.

Now() Method

Summary

Gets a System.DateTime that is the current local date and time on this computer.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
DateTimeFunctions

Syntax

[Function("now")]
public static DateTime Now()

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Return Value

Type Description
DateTime A System.DateTime whose value is the current date and time.