public class Calendar extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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) |
DateTime |
AddHours(DateTime time,
int hours) |
DateTime |
AddMilliseconds(DateTime time,
double milliseconds) |
DateTime |
AddMinutes(DateTime time,
int minutes) |
DateTime |
AddMonths(DateTime time,
int months) |
DateTime |
AddSeconds(DateTime time,
int seconds) |
DateTime |
AddWeeks(DateTime time,
int weeks) |
DateTime |
AddYears(DateTime time,
int years) |
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() |
CalendarAlgorithmType |
getAlgorithmType() |
int |
GetDayOfMonth(DateTime time) |
DayOfWeek |
GetDayOfWeek(DateTime time) |
int |
GetDayOfYear(DateTime time) |
int |
GetDaysInMonth(int year,
int month) |
int |
GetDaysInMonth(int year,
int month,
int era) |
int |
GetDaysInYear(int year) |
int |
GetDaysInYear(int year,
int era) |
int |
GetEra(DateTime time) |
int[] |
getEras() |
int |
GetHour(DateTime time) |
boolean |
getIsReadOnly() |
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 |
GetLeapMonth(int year,
int era) |
DateTime |
getMaxSupportedDateTime() |
double |
GetMilliseconds(DateTime time) |
DateTime |
getMinSupportedDateTime() |
int |
GetMinute(DateTime time) |
int |
GetMonth(DateTime time) |
int |
GetMonthsInYear(int year) |
int |
GetMonthsInYear(int year,
int era) |
int |
GetSecond(DateTime time) |
int |
getTwoDigitYearMax() |
int |
GetWeekOfYear(DateTime time,
CalendarWeekRule rule,
DayOfWeek firstDayOfWeek) |
int |
GetYear(DateTime time) |
boolean |
IsLeapDay(int year,
int month,
int day) |
boolean |
IsLeapDay(int year,
int month,
int day,
int era) |
boolean |
IsLeapMonth(int year,
int month) |
boolean |
IsLeapMonth(int year,
int month,
int era) |
boolean |
IsLeapYear(int year) |
boolean |
IsLeapYear(int year,
int era) |
static Calendar |
ReadOnly(Calendar calendar) |
void |
setJCOInstance(JCObject instance) |
void |
setTwoDigitYearMax(int TwoDigitYearMax) |
DateTime |
ToDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond) |
DateTime |
ToDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era) |
int |
ToFourDigitYear(int year) |
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
java.lang.Throwablepublic DateTime AddDays(DateTime time, int days) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentExceptionpublic DateTime AddHours(DateTime time, int hours) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentExceptionpublic DateTime AddMilliseconds(DateTime time, double milliseconds) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentExceptionpublic DateTime AddMinutes(DateTime time, int minutes) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentExceptionpublic DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable
java.lang.Throwablepublic DateTime AddSeconds(DateTime time, int seconds) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentExceptionpublic DateTime AddWeeks(DateTime time, int weeks) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionpublic DateTime AddYears(DateTime time, int years) throws java.lang.Throwable
java.lang.Throwablepublic 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
java.lang.Throwablepublic CalendarAlgorithmType getAlgorithmType() throws java.lang.Throwable
java.lang.Throwablepublic int GetDayOfMonth(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic DayOfWeek GetDayOfWeek(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int GetDayOfYear(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int GetDaysInMonth(int year,
int month)
throws java.lang.Throwable
java.lang.Throwablepublic int GetDaysInMonth(int year,
int month,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic int GetDaysInYear(int year)
throws java.lang.Throwable
java.lang.Throwablepublic int GetDaysInYear(int year,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic int GetEra(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int[] getEras()
throws java.lang.Throwable
java.lang.Throwablepublic int GetHour(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic int GetLeapMonth(int year)
throws java.lang.Throwable
java.lang.Throwablepublic int GetLeapMonth(int year,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic DateTime getMaxSupportedDateTime() throws java.lang.Throwable
java.lang.Throwablepublic double GetMilliseconds(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic DateTime getMinSupportedDateTime() throws java.lang.Throwable
java.lang.Throwablepublic int GetMinute(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int GetMonth(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int GetMonthsInYear(int year)
throws java.lang.Throwable
java.lang.Throwablepublic int GetMonthsInYear(int year,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic int GetSecond(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic int getTwoDigitYearMax()
throws java.lang.Throwable
java.lang.Throwablepublic int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
public int GetYear(DateTime time) throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapDay(int year,
int month,
int day)
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapDay(int year,
int month,
int day,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapMonth(int year,
int month)
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapMonth(int year,
int month,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapYear(int year)
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsLeapYear(int year,
int era)
throws java.lang.Throwable
java.lang.Throwablepublic static Calendar ReadOnly(Calendar calendar) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setTwoDigitYearMax(int TwoDigitYearMax)
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) throws java.lang.Throwable
java.lang.Throwablepublic DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) throws java.lang.Throwable
java.lang.Throwablepublic int ToFourDigitYear(int year)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeException