DateTimeConversionFunctions Class

Summary

Class which provides NAnt functions to convert strings in date and time objects and vice versa.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Base Types
graph BT Type-->Base0["FunctionSetBase"] click Base0 "/api/NAnt.Core/FunctionSetBase" Base0-->Base1["Object"] Type["DateTimeConversionFunctions"] class Type type-node

Syntax

[FunctionSet("datetime", "Conversion")]
public class DateTimeConversionFunctions : FunctionSetBase

Attributes

Type Description
FunctionSetAttribute Indicates that class should be treated as a set of functions.

Constructors

Name Summary
DateTimeConversionFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.DateTimeConversionFunctions class.

Properties

Name Value Summary
Project Project
Gets or sets the NAnt.Core.FunctionSetBase.Project that this functionset will reference.
Inherited from FunctionSetBase

Methods

Name Value Summary
Parse(string) DateTime
Converts the specified string representation of a date and time to its System.DateTime equivalent.
static
ToString(DateTime) string
Converts the specified System.DateTime to its equivalent string representation.
static
ToString(DateTime, string) string
Converts the specified System.DateTime to its equivalent string representation.
static