Package system
Class DateTime
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.DateTime
-
- All Implemented Interfaces:
IJCOBridgeReflected,ISerializable
public class DateTime extends ValueType implements ISerializable
The base .NET class managing System.DateTime, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DateTime
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: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.DateTimestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DateTime()DateTime(int year, int month, int day)DateTime(int year, int month, int day, int hour, int minute, int second)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, DateTimeKind kind)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar, DateTimeKind kind)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, DateTimeKind kind)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar)DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, DateTimeKind kind)DateTime(int year, int month, int day, int hour, int minute, int second, DateTimeKind kind)DateTime(int year, int month, int day, int hour, int minute, int second, Calendar calendar)DateTime(int year, int month, int day, Calendar calendar)DateTime(long ticks)DateTime(long ticks, DateTimeKind kind)DateTime(java.lang.Object instance)Internal constructor.DateTime(DateOnly date, TimeOnly time)DateTime(DateOnly date, TimeOnly time, DateTimeKind kind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTimeAdd(TimeSpan value)DateTimeAddDays(double value)DateTimeAddHours(double value)DateTimeAddMicroseconds(double value)DateTimeAddMilliseconds(double value)DateTimeAddMinutes(double value)DateTimeAddMonths(int months)DateTimeAddSeconds(double value)DateTimeAddTicks(long value)DateTimeAddYears(int value)static DateTimecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDateTime, a cast assert is made to check if types are compatible.static intCompare(DateTime t1, DateTime t2)intCompareTo(NetObject value)intCompareTo(DateTime value)static intDaysInMonth(int year, int month)voidDeconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day)voidDeconstruct(JCORefOut<DateOnly> date, JCORefOut<TimeOnly> time)booleanEquals(DateTime value)static booleanEquals(DateTime t1, DateTime t2)static DateTimeFromBinary(long dateData)static DateTimeFromFileTime(long fileTime)static DateTimeFromFileTimeUtc(long fileTime)static DateTimeFromOADate(double d)DateTimegetDate()java.lang.String[]GetDateTimeFormats()java.lang.String[]GetDateTimeFormats(char format)java.lang.String[]GetDateTimeFormats(char format, IFormatProvider provider)java.lang.String[]GetDateTimeFormats(IFormatProvider provider)intgetDay()DayOfWeekgetDayOfWeek()intgetDayOfYear()intgetHour()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 TypeDateTimeKindgetKind()intgetMicrosecond()intgetMillisecond()intgetMinute()intgetMonth()intgetNanosecond()static DateTimegetNow()intgetSecond()longgetTicks()TimeSpangetTimeOfDay()static DateTimegetToday()TypeCodeGetTypeCode()static DateTimegetUtcNow()intgetYear()booleanIsDaylightSavingTime()static booleanIsLeapYear(int year)static DateTimeParse(java.lang.String s)static DateTimeParse(java.lang.String s, IFormatProvider provider)static DateTimeParse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles)static DateTimeParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style)static DateTimeParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider)static DateTimeParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style)static DateTimeParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3)voidsetJCOInstance(JCObject instance)static DateTimeSpecifyKind(DateTime value, DateTimeKind kind)TimeSpanSubtract(DateTime value)DateTimeSubtract(TimeSpan value)longToBinary()longToFileTime()longToFileTimeUtc()DateTimeToLocalTime()java.lang.StringToLongDateString()java.lang.StringToLongTimeString()doubleToOADate()java.lang.StringToShortDateString()java.lang.StringToShortTimeString()java.lang.StringToString(java.lang.String format)java.lang.StringToString(java.lang.String format, IFormatProvider provider)java.lang.StringToString(IFormatProvider provider)DateTimeToUniversalTime()static booleanTryParse(java.lang.String s, JCORefOut<DateTime> result)static booleanTryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateTime> result)static booleanTryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles, JCORefOut<DateTime> result)static booleanTryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateTime> result)static booleanTryParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateTime> result)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.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.DateTime- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateTime
public DateTime(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
DateTime
public DateTime() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second, Calendar calendar) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
DateTime
public DateTime(int year, int month, int day, int hour, int minute, int second) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DateTime
public DateTime(int year, int month, int day, Calendar calendar) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
DateTime
public DateTime(int year, int month, int day) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DateTime
public DateTime(long ticks, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
DateTime
public DateTime(long ticks) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
DateTime
public DateTime(DateOnly date, TimeOnly time, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classValueType- 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- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classValueType- 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- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classValueType- 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- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DateTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDateTime, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DateTimeinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Equals
public static boolean Equals(DateTime t1, DateTime t2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Equals
public boolean Equals(DateTime value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsDaylightSavingTime
public boolean IsDaylightSavingTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, IndexOutOfRangeException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionIndexOutOfRangeException
-
IsLeapYear
public static boolean IsLeapYear(int year) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
TryParse
public static boolean TryParse(java.lang.String s, JCORefOut<DateTime> result) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, TypeInitializationException, OverflowException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionTypeInitializationExceptionOverflowExceptionNotSupportedException
-
TryParse
public static boolean TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateTime> result) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OutOfMemoryException, OverflowException
-
TryParse
public static boolean TryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles, JCORefOut<DateTime> result) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateTime> result) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateTime> result) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ToOADate
public double ToOADate() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OverflowException
-
Compare
public static int Compare(DateTime t1, DateTime t2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(DateTime value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
DaysInMonth
public static int DaysInMonth(int year, int month) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
ToBinary
public long ToBinary() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, IndexOutOfRangeException, OverflowException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionIndexOutOfRangeExceptionOverflowException
-
ToFileTime
public long ToFileTime() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, OverflowException
-
ToFileTimeUtc
public long ToFileTimeUtc() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, OverflowException
-
Add
public DateTime Add(TimeSpan value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
AddDays
public DateTime AddDays(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddHours
public DateTime AddHours(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddMicroseconds
public DateTime AddMicroseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddMilliseconds
public DateTime AddMilliseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddMinutes
public DateTime AddMinutes(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddMonths
public DateTime AddMonths(int months) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
AddSeconds
public DateTime AddSeconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddTicks
public DateTime AddTicks(long value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddYears
public DateTime AddYears(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
FromBinary
public static DateTime FromBinary(long dateData) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionIndexOutOfRangeExceptionOverflowException
-
FromFileTime
public static DateTime FromFileTime(long fileTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, InvalidTimeZoneException, UnauthorizedAccessException, IOException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionInvalidTimeZoneExceptionUnauthorizedAccessExceptionIOExceptionOverflowException
-
FromFileTimeUtc
public static DateTime FromFileTimeUtc(long fileTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
FromOADate
public static DateTime FromOADate(double d) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Parse
public static DateTime Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowException
-
Parse
public static DateTime Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowException
-
Parse
public static DateTime Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowException
-
ParseExact
public static DateTime ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateTime ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateTime ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateTime ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
SpecifyKind
public static DateTime SpecifyKind(DateTime value, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Subtract
public DateTime Subtract(TimeSpan value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
ToLocalTime
public DateTime ToLocalTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionIndexOutOfRangeException
-
ToUniversalTime
public DateTime ToUniversalTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionIndexOutOfRangeException
-
ToLongDateString
public java.lang.String ToLongDateString() throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToLongTimeString
public java.lang.String ToLongTimeString() throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToShortDateString
public java.lang.String ToShortDateString() throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToShortTimeString
public java.lang.String ToShortTimeString() throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToString
public java.lang.String ToString(java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, OverflowException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(char format, IFormatProvider provider) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, TypeInitializationException, OutOfMemoryException, InvalidOperationException, FormatException, NotSupportedException, OverflowException- Throws:
java.lang.ThrowableCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionTypeInitializationExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionNotSupportedExceptionOverflowException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(char format) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, OverflowException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(IFormatProvider provider) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, TypeInitializationException, OutOfMemoryException, InvalidOperationException, FormatException, NotSupportedException, OverflowException
- Throws:
java.lang.ThrowableCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionTypeInitializationExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionNotSupportedExceptionOverflowException
-
Subtract
public TimeSpan Subtract(DateTime value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetTypeCode
public TypeCode GetTypeCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Deconstruct
public void Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Deconstruct
public void Deconstruct(JCORefOut<DateOnly> date, JCORefOut<TimeOnly> time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getDay
public int getDay() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDayOfYear
public int getDayOfYear() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getHour
public int getHour() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMicrosecond
public int getMicrosecond() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMillisecond
public int getMillisecond() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMinute
public int getMinute() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMonth
public int getMonth() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getNanosecond
public int getNanosecond() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSecond
public int getSecond() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getYear
public int getYear() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getTicks
public long getTicks() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDate
public DateTime getDate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNow
public static DateTime getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException, InvalidTimeZoneException, CultureNotFoundException, UnauthorizedAccessException, IOException
-
getToday
public static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
-
getUtcNow
public static DateTime getUtcNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException
-
getKind
public DateTimeKind getKind() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDayOfWeek
public DayOfWeek getDayOfWeek() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTimeOfDay
public TimeSpan getTimeOfDay() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-