public class GregorianCalendar extends Calendar
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.GregorianCalendar
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Globalization.GregorianCalendar
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
GregorianCalendar() |
GregorianCalendar(GregorianCalendarTypes type) |
GregorianCalendar(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTime |
AddMonths(DateTime time,
int months) |
DateTime |
AddYears(DateTime time,
int years) |
static GregorianCalendar |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into GregorianCalendar, a cast assert is made to check if types are compatible. |
GregorianCalendarTypes |
getCalendarType() |
int |
GetDayOfMonth(DateTime time) |
DayOfWeek |
GetDayOfWeek(DateTime time) |
int |
GetDayOfYear(DateTime time) |
int |
GetDaysInMonth(int year,
int month,
int era) |
int |
GetDaysInYear(int year,
int era) |
int |
GetEra(DateTime time) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
GetLeapMonth(int year,
int era) |
int |
GetMonth(DateTime time) |
int |
GetMonthsInYear(int year,
int era) |
int |
GetYear(DateTime time) |
boolean |
IsLeapDay(int year,
int month,
int day,
int era) |
boolean |
IsLeapMonth(int year,
int month,
int era) |
boolean |
IsLeapYear(int year,
int era) |
void |
setCalendarType(GregorianCalendarTypes CalendarType) |
void |
setJCOInstance(JCObject instance) |
DateTime |
ToDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era) |
int |
ToFourDigitYear(int year) |
AddDays, AddHours, AddMilliseconds, AddMinutes, AddSeconds, AddWeeks, Clone, getAlgorithmType, GetDaysInMonth, GetDaysInYear, getEras, GetHour, getIsReadOnly, GetLeapMonth, getMaxSupportedDateTime, GetMilliseconds, getMinSupportedDateTime, GetMinute, GetMonthsInYear, GetSecond, getTwoDigitYearMax, GetWeekOfYear, IsLeapDay, IsLeapMonth, IsLeapYear, ReadOnly, setTwoDigitYearMax, ToDateTimepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public GregorianCalendar()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException
public GregorianCalendar(GregorianCalendarTypes type) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public GregorianCalendar(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
AddMonths in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic static GregorianCalendar cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into GregorianCalendar, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedGregorianCalendar instancejava.lang.Throwable - in case of error during cast operationpublic GregorianCalendarTypes getCalendarType() throws java.lang.Throwable
java.lang.Throwablepublic int GetDayOfMonth(DateTime time) throws java.lang.Throwable
GetDayOfMonth in class Calendarjava.lang.Throwablepublic DayOfWeek GetDayOfWeek(DateTime time) throws java.lang.Throwable
GetDayOfWeek in class Calendarjava.lang.Throwablepublic int GetDayOfYear(DateTime time) throws java.lang.Throwable
GetDayOfYear in class Calendarjava.lang.Throwablepublic int GetDaysInMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetDaysInMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic int GetDaysInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetDaysInYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic int GetEra(DateTime time) throws java.lang.Throwable
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class CalendarString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class CalendarString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class CalendarObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class CalendarString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class CalendarJCType representing the CLR Type of the instantiated Classpublic int GetLeapMonth(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetLeapMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic int GetMonth(DateTime time) throws java.lang.Throwable
public int GetMonthsInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetMonthsInYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic int GetYear(DateTime time) throws java.lang.Throwable
public boolean IsLeapDay(int year,
int month,
int day,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapDay in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic boolean IsLeapMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic boolean IsLeapYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic void setCalendarType(GregorianCalendarTypes CalendarType) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Calendarpublic DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
ToDateTime in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic int ToFourDigitYear(int year)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
ToFourDigitYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatException