public class GregorianCalendar extends Calendar
.NET documentation at https://learn.microsoft.com/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=8.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()
Initializes a new instance by invoking the .NET constructor.
|
GregorianCalendar(GregorianCalendarTypes type)
Initializes a new instance by invoking the .NET constructor.
|
GregorianCalendar(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTime |
AddMonths(DateTime time,
int months)
Invokes the .NET member AddMonths.
|
DateTime |
AddYears(DateTime time,
int years)
Invokes the .NET member AddYears.
|
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()
Gets the value of the .NET property CalendarType.
|
int |
GetDayOfMonth(DateTime time)
Invokes the .NET member GetDayOfMonth.
|
DayOfWeek |
GetDayOfWeek(DateTime time)
Invokes the .NET member GetDayOfWeek.
|
int |
GetDayOfYear(DateTime time)
Invokes the .NET member GetDayOfYear.
|
int |
GetDaysInMonth(int year,
int month,
int era)
Invokes the .NET member GetDaysInMonth.
|
int |
GetDaysInYear(int year,
int era)
Invokes the .NET member GetDaysInYear.
|
int |
GetEra(DateTime time)
Invokes the .NET member GetEra.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
GetLeapMonth(int year,
int era)
Invokes the .NET member GetLeapMonth.
|
int |
GetMonth(DateTime time)
Invokes the .NET member GetMonth.
|
int |
GetMonthsInYear(int year,
int era)
Invokes the .NET member GetMonthsInYear.
|
int |
GetYear(DateTime time)
Invokes the .NET member GetYear.
|
boolean |
IsLeapDay(int year,
int month,
int day,
int era)
Invokes the .NET member IsLeapDay.
|
boolean |
IsLeapMonth(int year,
int month,
int era)
Invokes the .NET member IsLeapMonth.
|
boolean |
IsLeapYear(int year,
int era)
Invokes the .NET member IsLeapYear.
|
void |
setCalendarType(GregorianCalendarTypes CalendarType)
Sets the value of the .NET property CalendarType.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
DateTime |
ToDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era)
Invokes the .NET member ToDateTime.
|
int |
ToFourDigitYear(int year)
Invokes the .NET member ToFourDigitYear.
|
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,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic GregorianCalendar(GregorianCalendarTypes type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
type - the argument of type GregorianCalendarTypesjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic GregorianCalendar(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
AddMonths in class Calendartime - the argument of type DateTimemonths - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateTime AddYears(DateTime time, int years) throws java.lang.Throwable
AddYears in class Calendartime - the argument of type DateTimeyears - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic 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.Throwable - if the call fails in the bridge or in the CLRpublic int GetDayOfMonth(DateTime time) throws java.lang.Throwable
GetDayOfMonth in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DayOfWeek GetDayOfWeek(DateTime time) throws java.lang.Throwable
GetDayOfWeek in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetDayOfYear(DateTime time) throws java.lang.Throwable
GetDayOfYear in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetDaysInMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetDaysInMonth in class Calendaryear - the argument of type intmonth - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int GetDaysInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetDaysInYear in class Calendaryear - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int GetEra(DateTime time) throws java.lang.Throwable
GetEra in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Calendarpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Calendarpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Calendarnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Calendarpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Calendarpublic int GetLeapMonth(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetLeapMonth in class Calendaryear - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int GetMonth(DateTime time) throws java.lang.Throwable
GetMonth in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMonthsInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
GetMonthsInYear in class Calendaryear - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int GetYear(DateTime time) throws java.lang.Throwable
GetYear in class Calendartime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsLeapDay(int year,
int month,
int day,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapDay in class Calendaryear - the argument of type intmonth - the argument of type intday - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean IsLeapMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapMonth in class Calendaryear - the argument of type intmonth - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean IsLeapYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
IsLeapYear in class Calendaryear - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setCalendarType(GregorianCalendarTypes CalendarType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
CalendarType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Calendarinstance - the new underlying objectpublic DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
ToDateTime in class Calendaryear - the argument of type intmonth - the argument of type intday - the argument of type inthour - the argument of type intminute - the argument of type intsecond - the argument of type intmillisecond - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int ToFourDigitYear(int year)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
ToFourDigitYear in class Calendaryear - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises it