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, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Globalization.Calendarstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 theIJCOBridgeReflected
instance intoCalendar
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
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)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Calendar cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoCalendar
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Calendar
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsLeapDay
public boolean IsLeapDay(int year, int month, int day, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsLeapDay
public boolean IsLeapDay(int year, int month, int day) 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
-
IsLeapMonth
public boolean IsLeapMonth(int year, int month) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsLeapYear
public boolean IsLeapYear(int year, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsLeapYear
public boolean IsLeapYear(int year) 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, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDaysInMonth
public int GetDaysInMonth(int year, int month) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDaysInYear
public int GetDaysInYear(int year, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDaysInYear
public int GetDaysInYear(int year) 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, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLeapMonth
public int GetLeapMonth(int year) 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, int era) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMonthsInYear
public int GetMonthsInYear(int year) 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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetYear
public int GetYear(DateTime time) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToFourDigitYear
public int ToFourDigitYear(int year) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
AddDays
public DateTime AddDays(DateTime time, int days) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddHours
public DateTime AddHours(DateTime time, int hours) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddMilliseconds
public DateTime AddMilliseconds(DateTime time, double milliseconds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddMinutes
public DateTime AddMinutes(DateTime time, int minutes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddWeeks
public DateTime AddWeeks(DateTime time, int weeks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
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, int era) 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
-
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, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
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
-
-