Package system.globalization
Class Calendar
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.globalization.Calendar
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
EastAsianLunisolarCalendar,GregorianCalendar,HebrewCalendar,HijriCalendar,JapaneseCalendar,JulianCalendar,KoreanCalendar,PersianCalendar,TaiwanCalendar,ThaiBuddhistCalendar,UmAlQuraCalendar
public class Calendar extends NetObject
The base .NET class managing System.Globalization.Calendar, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.Calendar
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Globalization.Calendarstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTimeAddDays(DateTime time, int days)DateTimeAddHours(DateTime time, int hours)DateTimeAddMilliseconds(DateTime time, double milliseconds)DateTimeAddMinutes(DateTime time, int minutes)DateTimeAddMonths(DateTime time, int months)DateTimeAddSeconds(DateTime time, int seconds)DateTimeAddWeeks(DateTime time, int weeks)DateTimeAddYears(DateTime time, int years)static Calendarcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoCalendar, a cast assert is made to check if types are compatible.NetObjectClone()CalendarAlgorithmTypegetAlgorithmType()intGetDayOfMonth(DateTime time)DayOfWeekGetDayOfWeek(DateTime time)intGetDayOfYear(DateTime time)intGetDaysInMonth(int year, int month)intGetDaysInMonth(int year, int month, int era)intGetDaysInYear(int year)intGetDaysInYear(int year, int era)intGetEra(DateTime time)int[]getEras()intGetHour(DateTime time)booleangetIsReadOnly()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintGetLeapMonth(int year)intGetLeapMonth(int year, int era)DateTimegetMaxSupportedDateTime()doubleGetMilliseconds(DateTime time)DateTimegetMinSupportedDateTime()intGetMinute(DateTime time)intGetMonth(DateTime time)intGetMonthsInYear(int year)intGetMonthsInYear(int year, int era)intGetSecond(DateTime time)intgetTwoDigitYearMax()intGetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek)intGetYear(DateTime time)booleanIsLeapDay(int year, int month, int day)booleanIsLeapDay(int year, int month, int day, int era)booleanIsLeapMonth(int year, int month)booleanIsLeapMonth(int year, int month, int era)booleanIsLeapYear(int year)booleanIsLeapYear(int year, int era)static CalendarReadOnly(Calendar calendar)voidsetJCOInstance(JCObject instance)voidsetTwoDigitYearMax(int TwoDigitYearMax)DateTimeToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)DateTimeToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)intToFourDigitYear(int year)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Globalization.Calendar- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Calendar cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoCalendar, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Calendarinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsLeapDay
public boolean IsLeapDay(int year, int month, int day) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IsLeapDay
public boolean IsLeapDay(int year, int month, int day, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IsLeapMonth
public boolean IsLeapMonth(int year, int month) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IsLeapMonth
public boolean IsLeapMonth(int year, int month, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IsLeapYear
public boolean IsLeapYear(int year) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IsLeapYear
public boolean IsLeapYear(int year, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetMilliseconds
public double GetMilliseconds(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDayOfMonth
public int GetDayOfMonth(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDayOfYear
public int GetDayOfYear(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDaysInMonth
public int GetDaysInMonth(int year, int month) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetDaysInMonth
public int GetDaysInMonth(int year, int month, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetDaysInYear
public int GetDaysInYear(int year) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetDaysInYear
public int GetDaysInYear(int year, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetEra
public int GetEra(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetHour
public int GetHour(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLeapMonth
public int GetLeapMonth(int year) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetLeapMonth
public int GetLeapMonth(int year, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetMinute
public int GetMinute(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMonth
public int GetMonth(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMonthsInYear
public int GetMonthsInYear(int year) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetMonthsInYear
public int GetMonthsInYear(int year, int era) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetSecond
public int GetSecond(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetWeekOfYear
public int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
GetYear
public int GetYear(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToFourDigitYear
public int ToFourDigitYear(int year) throws java.lang.Throwable, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentOutOfRangeException
-
AddDays
public DateTime AddDays(DateTime time, int days) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentException
-
AddHours
public DateTime AddHours(DateTime time, int hours) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentException
-
AddMilliseconds
public DateTime AddMilliseconds(DateTime time, double milliseconds) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentException
-
AddMinutes
public DateTime AddMinutes(DateTime time, int minutes) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentException
-
AddMonths
public DateTime AddMonths(DateTime time, int months) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AddSeconds
public DateTime AddSeconds(DateTime time, int seconds) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionArgumentException
-
AddWeeks
public DateTime AddWeeks(DateTime time, int weeks) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentException
-
AddYears
public DateTime AddYears(DateTime time, int years) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToDateTime
public DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToDateTime
public DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDayOfWeek
public DayOfWeek GetDayOfWeek(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ReadOnly
public static Calendar ReadOnly(Calendar calendar) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
Clone
public NetObject Clone() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsReadOnly
public boolean getIsReadOnly() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getTwoDigitYearMax
public int getTwoDigitYearMax() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setTwoDigitYearMax
public void setTwoDigitYearMax(int TwoDigitYearMax) throws java.lang.Throwable, InvalidOperationException- Throws:
java.lang.ThrowableInvalidOperationException
-
getEras
public int[] getEras() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMaxSupportedDateTime
public DateTime getMaxSupportedDateTime() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinSupportedDateTime
public DateTime getMinSupportedDateTime() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAlgorithmType
public CalendarAlgorithmType getAlgorithmType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-