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=9.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.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.DateTimestatic JCType
classType
The 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 DateTime
Add(TimeSpan value)
DateTime
AddDays(double value)
DateTime
AddHours(double value)
DateTime
AddMicroseconds(double value)
DateTime
AddMilliseconds(double value)
DateTime
AddMinutes(double value)
DateTime
AddMonths(int months)
DateTime
AddSeconds(double value)
DateTime
AddTicks(long value)
DateTime
AddYears(int value)
static DateTime
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDateTime
, a cast assert is made to check if types are compatible.static int
Compare(DateTime t1, DateTime t2)
int
CompareTo(NetObject value)
int
CompareTo(DateTime value)
static int
DaysInMonth(int year, int month)
void
Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day)
void
Deconstruct(JCORefOut<DateOnly> date, JCORefOut<TimeOnly> time)
boolean
Equals(DateTime value)
static boolean
Equals(DateTime t1, DateTime t2)
static DateTime
FromBinary(long dateData)
static DateTime
FromFileTime(long fileTime)
static DateTime
FromFileTimeUtc(long fileTime)
static DateTime
FromOADate(double d)
DateTime
getDate()
java.lang.String[]
GetDateTimeFormats()
java.lang.String[]
GetDateTimeFormats(char format)
java.lang.String[]
GetDateTimeFormats(char format, IFormatProvider provider)
java.lang.String[]
GetDateTimeFormats(IFormatProvider provider)
int
getDay()
DayOfWeek
getDayOfWeek()
int
getDayOfYear()
int
getHour()
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 TypeDateTimeKind
getKind()
int
getMicrosecond()
int
getMillisecond()
int
getMinute()
int
getMonth()
int
getNanosecond()
static DateTime
getNow()
int
getSecond()
long
getTicks()
TimeSpan
getTimeOfDay()
static DateTime
getToday()
TypeCode
GetTypeCode()
static DateTime
getUtcNow()
int
getYear()
boolean
IsDaylightSavingTime()
static boolean
IsLeapYear(int year)
static DateTime
Parse(java.lang.String s)
static DateTime
Parse(java.lang.String s, IFormatProvider provider)
static DateTime
Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles)
static DateTime
ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style)
static DateTime
ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider)
static DateTime
ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style)
static DateTime
ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3)
void
setJCOInstance(JCObject instance)
static DateTime
SpecifyKind(DateTime value, DateTimeKind kind)
TimeSpan
Subtract(DateTime value)
DateTime
Subtract(TimeSpan value)
long
ToBinary()
long
ToFileTime()
long
ToFileTimeUtc()
DateTime
ToLocalTime()
java.lang.String
ToLongDateString()
java.lang.String
ToLongTimeString()
double
ToOADate()
java.lang.String
ToShortDateString()
java.lang.String
ToShortTimeString()
java.lang.String
ToString(java.lang.String format)
java.lang.String
ToString(java.lang.String format, IFormatProvider provider)
java.lang.String
ToString(IFormatProvider provider)
DateTime
ToUniversalTime()
static boolean
TryParse(java.lang.String s, JCORefOut<DateTime> result)
static boolean
TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateTime> result)
static boolean
TryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles, JCORefOut<DateTime> result)
static boolean
TryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateTime> result)
static boolean
TryParseExact(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=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.DateTime- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateTime
public DateTime(java.lang.Object instance) throws java.lang.Throwable
Internal 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, PlatformNotSupportedException, IndexOutOfRangeException, 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, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classValueType
- 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
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classValueType
- 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
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classValueType
- 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
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DateTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDateTime
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DateTime
instance- 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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
CultureNotFoundException
ArgumentNullException
SecurityException
UnauthorizedAccessException
IOException
NullReferenceException
IndexOutOfRangeException
-
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, NullReferenceException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, TypeInitializationException, InvalidOperationException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
TypeInitializationException
InvalidOperationException
OverflowException
-
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, NullReferenceException, OutOfMemoryException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
NullReferenceException
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, NullReferenceException, TypeInitializationException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
CultureNotFoundException
ArgumentNullException
SecurityException
UnauthorizedAccessException
IOException
NullReferenceException
IndexOutOfRangeException
OverflowException
-
ToFileTime
public long ToFileTime() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException
-
ToFileTimeUtc
public long ToFileTimeUtc() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException
-
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.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
AddHours
public DateTime AddHours(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
AddMicroseconds
public DateTime AddMicroseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
AddMilliseconds
public DateTime AddMilliseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
AddMinutes
public DateTime AddMinutes(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
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.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
CultureNotFoundException
ArgumentNullException
SecurityException
UnauthorizedAccessException
IOException
NullReferenceException
IndexOutOfRangeException
OverflowException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
InvalidTimeZoneException
UnauthorizedAccessException
IOException
OverflowException
-
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, NullReferenceException, TypeInitializationException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
-
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, NullReferenceException, TypeInitializationException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
-
Parse
public static DateTime Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, TypeInitializationException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, NullReferenceException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
CultureNotFoundException
ArgumentNullException
SecurityException
UnauthorizedAccessException
IOException
NullReferenceException
OverflowException
IndexOutOfRangeException
-
ToUniversalTime
public DateTime ToUniversalTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
CultureNotFoundException
ArgumentNullException
SecurityException
UnauthorizedAccessException
IOException
NullReferenceException
IndexOutOfRangeException
-
ToLongDateString
public java.lang.String ToLongDateString() throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToLongTimeString
public java.lang.String ToLongTimeString() throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToShortDateString
public java.lang.String ToShortDateString() throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToShortTimeString
public java.lang.String ToShortTimeString() throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToString
public java.lang.String ToString(java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
SecurityException
OverflowException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, IndexOutOfRangeException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(char format, IFormatProvider provider) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, TypeInitializationException, OutOfMemoryException, InvalidOperationException, FormatException
- Throws:
java.lang.Throwable
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentException
IndexOutOfRangeException
ArgumentOutOfRangeException
RankException
ArrayTypeMismatchException
TypeInitializationException
OutOfMemoryException
InvalidOperationException
FormatException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(char format) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
OutOfMemoryException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentOutOfRangeException
FormatException
InvalidOperationException
IndexOutOfRangeException
OverflowException
-
GetDateTimeFormats
public java.lang.String[] GetDateTimeFormats(IFormatProvider provider) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, TypeInitializationException, OutOfMemoryException, InvalidOperationException, FormatException, OverflowException
- Throws:
java.lang.Throwable
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentException
IndexOutOfRangeException
ArgumentOutOfRangeException
RankException
ArrayTypeMismatchException
TypeInitializationException
OutOfMemoryException
InvalidOperationException
FormatException
OverflowException
-
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, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, CultureNotFoundException, UnauthorizedAccessException, IOException, NullReferenceException
-
getToday
public static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException
-
getUtcNow
public static DateTime getUtcNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
NotSupportedException
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
-
-