public class JapaneseCalendar extends Calendar
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.JapaneseCalendar
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.JapaneseCalendar
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JapaneseCalendar() |
JapaneseCalendar(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 JapaneseCalendar |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into JapaneseCalendar, a cast assert is made to check if types are compatible. |
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 |
GetWeekOfYear(DateTime time,
CalendarWeekRule rule,
DayOfWeek firstDayOfWeek) |
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 |
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, 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 JapaneseCalendar()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
OutOfMemoryException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
TypeInitializationException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
ObjectDisposedException,
SecurityException,
UnauthorizedAccessException,
IOException,
FormatException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionTypeInitializationExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionFormatExceptionpublic JapaneseCalendar(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException
AddMonths in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionpublic DateTime AddYears(DateTime time, int years) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
AddYears in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic static JapaneseCalendar cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JapaneseCalendar, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJapaneseCalendar instancejava.lang.Throwable - in case of error during cast operationpublic int GetDayOfMonth(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetDayOfMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic DayOfWeek GetDayOfWeek(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetDayOfWeek in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic int GetDayOfYear(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetDayOfYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic int GetDaysInMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
GetDaysInMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionFormatExceptionpublic int GetDaysInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
GetDaysInYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionFormatExceptionpublic int GetEra(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
GetEra in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionpublic 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,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
public int GetMonth(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetMonth in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic int GetMonthsInYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
GetMonthsInYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionFormatExceptionpublic int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetWeekOfYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic int GetYear(DateTime time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
GetYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionpublic boolean IsLeapDay(int year,
int month,
int day,
int era)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
PlatformNotSupportedException,
FormatException
IsLeapDay in class Calendarjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionFormatExceptionpublic boolean IsLeapMonth(int year,
int month,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
public boolean IsLeapYear(int year,
int era)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
FormatException
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, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException
public int ToFourDigitYear(int year)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
ToFourDigitYear in class Calendarjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatException