GOA - System.DateTime

DateTime Class


Represents an instant in time, expressed as a date and time of day. This class cannot be inherited.

Definition

public sealed class DateTime: Object, IComparable

Members Table

MethodDescription
AddAdds the specified time to the value of this instance.
AddDaysAdds days to the value of this instance.
AddHoursAdds hours to the value of this instance.
AddMillisecondsAdds milliseconds to the value of this instance.
AddMinutesAdds minutes to the value of this instance.
AddMonthsAdds months to the value of this instance.
AddSecondsAdds seconds to the value of this instance.
AddYearsAdds years to the value of this instance.
CompareCompares two instances of DateTime and returns an indication of their relative values.
CompareToCompares this instance to a specified object and returns an indication of their relative values.
DateTimeOverloaded. Initializes a new instance of DateTime.
DaysInMonthReturns the number of days in the specified month of the specified year.
EqualsOverloaded. Compares two objects to determine if they are equal.
GetHashCodeOverriden. Returns the hash code for this instance.
GetTypeGets the Type of the current instance. (Inherited from Object)
IsLeapYearReturns an indication whether the specified year is a leap year.
ReferenceEqualsDetermines whether the specified Object instances are the same instance. (Inherited from Object)
SubstractOverloaded. Subtracts the specified time or duration from this instance.
ToLocalTimeConverts the current coordinated universal time (UTC) to local time.
ToLongDateStringConverts the value of this instance to its equivalent long date string representation.
ToLongTimeStringConverts the value of this instance to its equivalent long time string representation.
ToShortDateStringConverts the value of this instance to its equivalent short date string representation.
ToShortTimeStringConverts the value of this instance to its equivalent short time string representation.
ToStringOverriden. Converts the value of this instance to its equivalent string.
ToUniversalTimeConverts the current local time to coordinated universal time (UTC).
PropertyDescription
DateGets the date component of this instance.
DayGets the day of the month of this instance.
DayOfWeekGets the day of the week of this instance.
DayOfYearGets the day of the year of this instance.
HourGets the hour component of this instance.
MillisecondGets the milliseconds component of this instance.
MinuteGets the minute component of this instance.
MonthGets the month component of this instance.
NowGets a DateTime that is the current local date and time on this computer.
SecondGets the seconds component of the date represented by this instance.
TicksDoubleGets the interval of time component of the date represented by this instance.
TimeOfDayGets the time of day for this instance.
TodayGets the current date.
UtcNowGets a DateTime that is the current local date and time on this computer expressed as the coordinated universal time (UTC).
YearGets the year component of the date represented by this instance.
OperatorDescription
operator !=Determines whether two specified instances of DateTime are not equal.
operator +Adds a specified time interval to a specified date and time, yielding a new date and time.
operator -Overloaded. Subtracts a specified DateTime or value from a specified DateTime.
operator <Determines whether one specified DateTime is less than another specified DateTime.
operator <=Determines whether one specified DateTime is less than or equal to another specified DateTime.
operator ==Determines whether two specified instances of DateTime are equal.
operator >Determines whether one specified DateTime is greater than another specified DateTime.
operator >=Determines whether one specified DateTime is greater than or equal to another specified DateTime.
FieldDescription
MaxValueRepresents the largest possible value of DateTime.
MinValueRepresents the smallest possible value of DateTime.

Inheritance Hierarchy

Object
DateTime

Class Information

NamespaceSystem
Flash Librarycorlib.scl
Flash Library Version2.0.0.2466
Silverlight LibrarySystem.Windows.Forms.dll



© 2003-2007 NETiKA Technologies. All rights reserved.