public class Calendar extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Globalization.Calendar
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=9.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.Calendar
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Calendar() |
Calendar(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTime |
AddDays(DateTime time,
int days)
Invokes the .NET member AddDays.
|
DateTime |
AddHours(DateTime time,
int hours)
Invokes the .NET member AddHours.
|
DateTime |
AddMilliseconds(DateTime time,
double milliseconds)
Invokes the .NET member AddMilliseconds.
|
DateTime |
AddMinutes(DateTime time,
int minutes)
Invokes the .NET member AddMinutes.
|
DateTime |
AddMonths(DateTime time,
int months)
Invokes the .NET member AddMonths.
|
DateTime |
AddSeconds(DateTime time,
int seconds)
Invokes the .NET member AddSeconds.
|
DateTime |
AddWeeks(DateTime time,
int weeks)
Invokes the .NET member AddWeeks.
|
DateTime |
AddYears(DateTime time,
int years)
Invokes the .NET member AddYears.
|
static Calendar |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Calendar, a cast assert is made to check if types are compatible. |
NetObject |
Clone()
Invokes the .NET member Clone.
|
CalendarAlgorithmType |
getAlgorithmType()
Gets the value of the .NET property AlgorithmType.
|
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)
Invokes the .NET member GetDaysInMonth.
|
int |
GetDaysInMonth(int year,
int month,
int era)
Invokes the .NET member GetDaysInMonth.
|
int |
GetDaysInYear(int year)
Invokes the .NET member GetDaysInYear.
|
int |
GetDaysInYear(int year,
int era)
Invokes the .NET member GetDaysInYear.
|
int |
GetEra(DateTime time)
Invokes the .NET member GetEra.
|
int[] |
getEras()
Gets the value of the .NET property Eras.
|
int |
GetHour(DateTime time)
Invokes the .NET member GetHour.
|
boolean |
getIsReadOnly()
Gets the value of the .NET property IsReadOnly.
|
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)
Invokes the .NET member GetLeapMonth.
|
int |
GetLeapMonth(int year,
int era)
Invokes the .NET member GetLeapMonth.
|
DateTime |
getMaxSupportedDateTime()
Gets the value of the .NET property MaxSupportedDateTime.
|
double |
GetMilliseconds(DateTime time)
Invokes the .NET member GetMilliseconds.
|
DateTime |
getMinSupportedDateTime()
Gets the value of the .NET property MinSupportedDateTime.
|
int |
GetMinute(DateTime time)
Invokes the .NET member GetMinute.
|
int |
GetMonth(DateTime time)
Invokes the .NET member GetMonth.
|
int |
GetMonthsInYear(int year)
Invokes the .NET member GetMonthsInYear.
|
int |
GetMonthsInYear(int year,
int era)
Invokes the .NET member GetMonthsInYear.
|
int |
GetSecond(DateTime time)
Invokes the .NET member GetSecond.
|
int |
getTwoDigitYearMax()
Gets the value of the .NET property TwoDigitYearMax.
|
int |
GetWeekOfYear(DateTime time,
CalendarWeekRule rule,
DayOfWeek firstDayOfWeek)
Invokes the .NET member GetWeekOfYear.
|
int |
GetYear(DateTime time)
Invokes the .NET member GetYear.
|
boolean |
IsLeapDay(int year,
int month,
int day)
Invokes the .NET member IsLeapDay.
|
boolean |
IsLeapDay(int year,
int month,
int day,
int era)
Invokes the .NET member IsLeapDay.
|
boolean |
IsLeapMonth(int year,
int month)
Invokes the .NET member IsLeapMonth.
|
boolean |
IsLeapMonth(int year,
int month,
int era)
Invokes the .NET member IsLeapMonth.
|
boolean |
IsLeapYear(int year)
Invokes the .NET member IsLeapYear.
|
boolean |
IsLeapYear(int year,
int era)
Invokes the .NET member IsLeapYear.
|
static Calendar |
ReadOnly(Calendar calendar)
Invokes the .NET member ReadOnly.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setTwoDigitYearMax(int TwoDigitYearMax)
Sets the value of the .NET property TwoDigitYearMax.
|
DateTime |
ToDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
Invokes the .NET member ToDateTime.
|
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.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Calendar()
throws java.lang.Throwable
java.lang.Throwablepublic Calendar(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 AddDays(DateTime time, int days) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimedays - 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateTime AddHours(DateTime time, int hours) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimehours - 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateTime AddMilliseconds(DateTime time, double milliseconds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimemilliseconds - the argument of type doublejava.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 DateTime AddMinutes(DateTime time, int minutes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimeminutes - 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable
time - the argument of type DateTimemonths - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DateTime AddSeconds(DateTime time, int seconds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimeseconds - 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateTime AddWeeks(DateTime time, int weeks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
time - the argument of type DateTimeweeks - 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 itpublic DateTime AddYears(DateTime time, int years) throws java.lang.Throwable
time - the argument of type DateTimeyears - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Calendar cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Calendar, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCalendar instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic CalendarAlgorithmType getAlgorithmType() 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
time - 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
time - 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
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetDaysInMonth(int year,
int month)
throws java.lang.Throwable
year - the argument of type intmonth - the argument of type intjava.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
year - 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 CLRpublic int GetDaysInYear(int year)
throws java.lang.Throwable
year - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetDaysInYear(int year,
int era)
throws java.lang.Throwable
year - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetEra(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int[] getEras()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetHour(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic int GetLeapMonth(int year)
throws java.lang.Throwable
year - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetLeapMonth(int year,
int era)
throws java.lang.Throwable
year - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DateTime getMaxSupportedDateTime() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic double GetMilliseconds(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DateTime getMinSupportedDateTime() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMinute(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMonth(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMonthsInYear(int year)
throws java.lang.Throwable
year - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetMonthsInYear(int year,
int era)
throws java.lang.Throwable
year - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetSecond(DateTime time) throws java.lang.Throwable
time - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getTwoDigitYearMax()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
time - the argument of type DateTimerule - the argument of type CalendarWeekRulefirstDayOfWeek - the argument of type DayOfWeekjava.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
time - 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)
throws java.lang.Throwable
year - the argument of type intmonth - the argument of type intday - the argument of type intjava.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
year - 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 CLRpublic boolean IsLeapMonth(int year,
int month)
throws java.lang.Throwable
year - the argument of type intmonth - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsLeapMonth(int year,
int month,
int era)
throws java.lang.Throwable
year - 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 CLRpublic boolean IsLeapYear(int year)
throws java.lang.Throwable
year - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsLeapYear(int year,
int era)
throws java.lang.Throwable
year - the argument of type intera - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Calendar ReadOnly(Calendar calendar) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
calendar - the argument of type Calendarjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setTwoDigitYearMax(int TwoDigitYearMax)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
TwoDigitYearMax - 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 DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) throws java.lang.Throwable
year - 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 intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) throws java.lang.Throwable
year - 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 CLRpublic int ToFourDigitYear(int year)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
year - 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 it