| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JulianCalendar ClassSystem.Globalization Namespace Represents the Julian calendar.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | AlgorithmType | CalendarAlgorithmType | [ Get ] |
| public | Eras | Int32 | [ Get ] |
| public | MaxSupportedDateTime | DateTime | [ Get ] |
| public | MinSupportedDateTime | DateTime | [ Get ] |
| public | TwoDigitYearMax | Int32 | [ Get , Set ] |
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | AddMonths | ( DateTime time , Int32 months ) | DateTime |
| public | AddYears | ( DateTime time , Int32 years ) | DateTime |
| public | GetDayOfMonth | ( DateTime time ) | Int32 |
| public | GetDayOfWeek | ( DateTime time ) | DayOfWeek |
| public | GetDayOfYear | ( DateTime time ) | Int32 |
| public | GetDaysInMonth | ( Int32 year , Int32 month , Int32 era ) | Int32 |
| public | GetDaysInYear | ( Int32 year , Int32 era ) | Int32 |
| public | GetEra | ( DateTime time ) | Int32 |
| public | GetLeapMonth | ( Int32 year , Int32 era ) | Int32 |
| public | GetMonth | ( DateTime time ) | Int32 |
| public | GetMonthsInYear | ( Int32 year , Int32 era ) | Int32 |
| public | GetYear | ( DateTime time ) | Int32 |
| public | IsLeapDay | ( Int32 year , Int32 month , Int32 day , Int32 era ) | Boolean |
| public | IsLeapMonth | ( Int32 year , Int32 month , Int32 era ) | Boolean |
| public | IsLeapYear | ( Int32 year , Int32 era ) | Boolean |
| public | ToDateTime | ( Int32 year , Int32 month , Int32 day , Int32 hour , Int32 minute , Int32 second , Int32 millisecond , Int32 era ) | DateTime |
| public | ToFourDigitYear | ( Int32 year ) | Int32 |
In 45 B.C., Julius Caesar ordered a calendar reform, which resulted in the calendar called the Julian calendar. The Julian calendar is the predecessor of the Gregorian calendar.
The JulianCalendar class recognizes only the current era.
Unlike the Gregorian calendar, the Julian calendar defines a leap year as a year that is evenly divisible by four with no exceptions; therefore, the calendar is inaccurate by one day every 128 years. A common year has 365 days and a leap year has 366 days.
Like the Gregorian calendar, the Julian calendar has 12 months with 28 to 31 days each: January ( 31 days ), February ( 28 or 29 days ), March ( 31 days ), April ( 30 days ), May ( 31 days ), June ( 30 days ), July ( 31 days ), August ( 31 days ), September ( 30 days ), October ( 31 days ), November ( 30 days ), and December ( 31 days ). February has 29 days during leap years and 28 during common years.
The date January 1, 2001 A.D. in the Gregorian calendar is equivalent to the 19th day of December in the year 2000 A.D. in the Julian calendar.
Currently, the JulianCalendar is not used by any of the cultures supported by the CultureInfo class; therefore, this class can only be used to calculate dates in the Julian calendar.
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme