NAnt SDK Documentation - v0.92
TimeSpanFunctions Methods
The methods of the TimeSpanFunctions class are listed below. For a complete list of TimeSpanFunctions class members, see the TimeSpanFunctions Members topic.
Public Static (Shared) Methods
FromDays Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
FromHours Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
FromMilliseconds Returns a TimeSpan that represents a specified number of milliseconds.
FromMinutes Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
FromSeconds Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
FromTicks Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
GetDays Returns the number of whole days represented by the specified TimeSpan .
GetHours Returns the number of whole hours represented by the specified TimeSpan .
GetMilliseconds Returns the number of whole milliseconds represented by the specified TimeSpan .
GetMinutes Returns the number of whole minutes represented by the specified TimeSpan .
GetSeconds Returns the number of whole seconds represented by the specified TimeSpan .
GetTicks Returns the number of ticks contained in the specified TimeSpan .
GetTotalDays Returns the total number of days represented by the specified TimeSpan , expressed in whole and fractional days.
GetTotalHours Returns the total number of hours represented by the specified TimeSpan , expressed in whole and fractional hours.
GetTotalMilliseconds Returns the total number of milliseconds represented by the specified TimeSpan , expressed in whole and fractional milliseconds.
GetTotalMinutes Returns the total number of minutes represented by the specified TimeSpan , expressed in whole and fractional minutes.
GetTotalSeconds Returns the total number of seconds represented by the specified TimeSpan , expressed in whole and fractional seconds.
Public Instance Methods
Equals (inherited from Object ) Determines whether the specified Object is equal to the current Object .
GetHashCode (inherited from Object ) Serves as a hash function for a particular type.
GetType (inherited from Object ) Gets the Type of the current instance.
ToString (inherited from Object ) Returns a String that represents the current Object .
Protected Instance Methods
Finalize (inherited from Object ) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object ) Creates a shallow copy of the current Object .
See Also
TimeSpanFunctions Class | NAnt.Core.Functions Namespace