Time Members

MSBuild

Gets the current date and time.


The following tables list the members exposed by Time.

Public Constructors

  Name Description
Public method Time Initializes a new instance of the Time class.
Top

Public Properties

  Name Description
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (inherited from Task)
Public property DateTimeValue Gets the internal time value.
Public property Day Gets the day of the month represented by this instance.
Public property DayOfWeek Gets the day of the week represented by this instance.
Public property DayOfYear Gets the day of the year represented by this instance.
Public property Format Gets or sets the format string for output parameter FormattedTime.
Public property FormattedTime Gets the value of this instance to its equivalent string representation. If input parameter Format is provided, the value is formatted according to it.
Public property HostObject Gets or sets the host object associated with the task. (inherited from Task)
Public property Hour Gets the hour component of the date represented by this instance.
Public property Kind Gets or sets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public property Log Gets an instance of a TaskLoggingHelper class containing task logging methods. (inherited from Task)
Public property LongDate Gets the value of this instance to its equivalent long date string representation.
Public property LongTime Gets the value of this instance to its equivalent long time string representation.
Public property Millisecond Gets the milliseconds component of the date represented by this instance.
Public property Minute Gets the minute component of the date represented by this instance.
Public property Month Gets the month component of the date represented by this instance.
Public property Second Gets the seconds component of the date represented by this instance.
Public property ShortDate Gets the value of this instance to its equivalent short date string representation.
Public property ShortTime Gets the value of this instance to its equivalent short time string representation.
Public property Ticks Gets the number of ticks that represent the date and time of this instance.
Public property TimeOfDay Gets the time of day for this instance.
Public property Year Gets the year component of the date represented by this instance.
Top

Protected Properties

  Name Description
Family property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task)
Family property TaskResources Gets or sets the culture-specific resources associated with the task. (inherited from Task)
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Execute Overidden. When overridden in a derived class, executes the task.
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.