Export (0) Print
Expand All

Calendar Members

Represents time in divisions, such as weeks, months, and years.

The Calendar type exposes the following members.

  NameDescription
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Calendar Initializes a new instance of the Calendar class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddDays Returns a DateTime that is the specified number of days away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddHours Returns a DateTime that is the specified number of hours away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddMilliseconds Returns a DateTime that is the specified number of milliseconds away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddMinutes Returns a DateTime that is the specified number of minutes away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddMonths When overridden in a derived class, returns a DateTime that is the specified number of months away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddSeconds Returns a DateTime that is the specified number of seconds away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddWeeks Returns a DateTime that is the specified number of weeks away from the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddYears When overridden in a derived class, returns a DateTime that is the specified number of years away from the specified DateTime.
Public method Clone Creates a new object that is a copy of the current Calendar object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDayOfMonth When overridden in a derived class, returns the day of the month in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDayOfWeek When overridden in a derived class, returns the day of the week in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDayOfYear When overridden in a derived class, returns the day of the year in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDaysInMonth Overloaded. When overridden in a derived class, returns the number of days in the specified month.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDaysInYear Overloaded. When overridden in a derived class, returns the number of days in the specified year.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEra When overridden in a derived class, returns the era in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHour Returns the hours value in the specified DateTime.
Public method GetLeapMonth Overloaded. Calculates the leap month for a specified year, or year and era.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMilliseconds Returns the milliseconds value in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMinute Returns the minutes value in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMonth When overridden in a derived class, returns the month in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMonthsInYear Overloaded. When overridden in a derived class, returns the number of months in the specified year.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetSecond Returns the seconds value in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetWeekOfYear Returns the week of the year that includes the date in the specified DateTime value.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetYear When overridden in a derived class, returns the year in the specified DateTime.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsLeapDay Overloaded. When overridden in a derived class, determines whether a date is a leap day.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsLeapMonth Overloaded. When overridden in a derived class, determines whether a month is a leap month.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsLeapYear Overloaded. When overridden in a derived class, determines whether a year is a leap year.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReadOnly Returns a read-only version of the specified Calendar object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToDateTime Overloaded. When overridden in a derived class, returns a DateTime that is set to the specified date and time.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToFourDigitYear Converts the specified year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework CurrentEra Represents the current era of the current calendar.
Top

  NameDescription
Public property AlgorithmType Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Eras When overridden in a derived class, gets the list of eras in the current calendar.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsReadOnly Gets a value indicating whether this Calendar object is read-only.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework MaxSupportedDateTime Gets the latest date and time supported by this Calendar object.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework MinSupportedDateTime Gets the earliest date and time supported by this Calendar object.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TwoDigitYearMax Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
Top

Community Additions

ADD
Show:
© 2014 Microsoft