GregorianCalendar |
Calendar | |
ICloneable | |
IObject |
Name | Description |
---|---|
![]() | Defines the different language versions of the Gregorian calendar. |
Name | Description |
---|---|
![]() | Gets a value that indicates whether the current calendar is solar-based, lunar-based, or a combination of both. |
![]() | Returns the GregorianCalendarTypes that represents the language version. |
![]() | Sets the GregorianCalendarTypes that represents the language version. |
![]() | Returns an array of eras this calendar represents. |
![]() | Gets a value indicating whether this GregorianCalendar object is read-only. |
![]() | Gets the latest date and time supported by the GregorianCalendar object. |
![]() | Gets the earliest date and time supported by the GregorianCalendar object. |
![]() | Returns the maximum year to be created from a 2-digit year. |
![]() | Sets the maximum year to be created from a 2-digit year. |
Name | Description |
---|---|
![]() | Adds a number of days to the date provided using Gregorian math. |
![]() | Adds a number of hours to the date provided. |
![]() | Returns a CorDateTime this is the specified number of Milliseconds from the original Time. |
![]() | Returns a CorDateTime this is the specified number of Minutes from the original Time. |
![]() | Returns a CorDateTime this is the specified number of Months from the original Time. |
![]() | Returns a CorDateTime this is the specified number of Seconds from the original Time. |
![]() | Returns a CorDateTime this is the specified number of Weeks from the original Time. |
![]() | Returns a CorDateTime this is the specified number of Years from the original Time. |
![]() | Creates a new object that is a copy of the current GregorianCalendar object. |
![]() | Returns a boolean indicating if the value and this object instance are the same instance. |
![]() | Returns the day of the months for the specified date. |
![]() | Returns the DayOfWeek enum of the specified date. |
![]() | Returns the day of the year for the specified date. |
![]() | Returns the number of days in the specified month. |
![]() | Returns the number of days in the specified year. |
![]() | Returns the era that the specified time exists in. |
![]() | Returns a pseudo-unique number identifying this instance. |
![]() | Returns the hour of the specified time. |
![]() | Calculates the leap month for a specified year and era. |
![]() | Returns the milliseconds of the specified time. |
![]() | Returns the minute of the specified time. |
![]() | Returns the month of the specified time. |
![]() | Returns the number of months in the specified year. |
![]() | Returns the second of the specified time. |
![]() | Returns the week of the year that the specified date belongs to. |
![]() | Returns the year of the specified time. |
![]() | Returns a boolean indicating if the specific day is a leap day. |
![]() | Returns a boolean indicating if the specific month is a leap month. |
![]() | Returns a boolean indicating if the specific year is a leap year. |
![]() | Returns a Gregorian CorDateTime computed using the specific calendar rules. |
![]() | Returns a 4-digit year from a 2-digit number. |
![]() | Returns a string representation of this object instance. |
The Gregorian calendar recognizes an era of BC (Before Christ) and AD (Anno Domino). The GregorianCalendar class only support the AD era (1).
The calendar supports the time from 01/01/0001 12:00:00AM to 12/31/9999 11:59:59PM.
Only leap year is recognized and occurs every 4 years, except a year that is evenly divisible by 100. However, if it is divisible by 400 then it is a leap year.
There are 12 months in the Gregorian calendar. The number of days range from 28 to 31, except on leap year when the shortest month is 29 days.