public class DateTime extends ValueType implements ISerializable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DateTime
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.DateTime
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DateTime() |
DateTime(DateOnly date,
TimeOnly time) |
DateTime(DateOnly date,
TimeOnly time,
DateTimeKind kind) |
DateTime(int year,
int month,
int day) |
DateTime(int year,
int month,
int day,
Calendar calendar) |
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,
Calendar calendar) |
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,
int millisecond) |
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,
int millisecond,
DateTimeKind kind) |
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,
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,
int microsecond,
DateTimeKind kind) |
DateTime(long ticks) |
DateTime(long ticks,
DateTimeKind kind) |
DateTime(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and 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 the
IJCOBridgeReflected instance into DateTime, a cast assert is made to check if types are compatible. |
static int |
Compare(DateTime t1,
DateTime t2) |
int |
CompareTo(DateTime value) |
int |
CompareTo(NetObject 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
DateTimeKind |
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 dupParam0,
JCORefOut dupParam1,
IFormatProvider dupParam2,
DateTimeStyles dupParam3) |
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) |
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(IFormatProvider provider) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider) |
DateTime |
ToUniversalTime() |
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
DateTimeStyles styles,
JCORefOut<DateTime> result) |
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateTime> result) |
static boolean |
TryParse(java.lang.String s,
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) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DateTime()
throws java.lang.Throwable
java.lang.Throwablepublic DateTime(DateOnly date, TimeOnly time) throws java.lang.Throwable
java.lang.Throwablepublic DateTime(DateOnly date, TimeOnly time, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public DateTime(int year,
int month,
int day)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public DateTime(int year,
int month,
int day,
Calendar calendar)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic DateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
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
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
DateTimeKind kind)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
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
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
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
DateTimeKind kind)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int microsecond)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException
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
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
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,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public DateTime(long ticks)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException
public DateTime(long ticks,
DateTimeKind kind)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException
public DateTime(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DateTime Add(TimeSpan value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public DateTime AddDays(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddHours(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddMicroseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddMilliseconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddMinutes(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddMonths(int months) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public DateTime AddSeconds(double value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DateTime AddTicks(long value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public DateTime AddYears(int value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public static DateTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DateTime, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDateTime instancejava.lang.Throwable - in case of error during cast operationpublic static int Compare(DateTime t1, DateTime t2) throws java.lang.Throwable
java.lang.Throwablepublic int CompareTo(DateTime value) throws java.lang.Throwable
java.lang.Throwablepublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public static int DaysInMonth(int year,
int month)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
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
java.lang.Throwablepublic void Deconstruct(JCORefOut<DateOnly> date, JCORefOut<TimeOnly> time) throws java.lang.Throwable
java.lang.Throwablepublic boolean Equals(DateTime value) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Equals(DateTime t1, DateTime t2) throws java.lang.Throwable
java.lang.Throwablepublic static DateTime FromBinary(long dateData) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException, OverflowException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionpublic static DateTime FromFileTime(long fileTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, IOException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionIOExceptionOverflowExceptionpublic static DateTime FromFileTimeUtc(long fileTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public static DateTime FromOADate(double d) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public DateTime getDate() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String[] GetDateTimeFormats()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
OutOfMemoryException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException
public java.lang.String[] GetDateTimeFormats(char format)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
OutOfMemoryException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionOutOfMemoryExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionIndexOutOfRangeExceptionOverflowExceptionpublic java.lang.String[] GetDateTimeFormats(char format,
IFormatProvider provider)
throws java.lang.Throwable,
PlatformNotSupportedException,
CultureNotFoundException,
NullReferenceException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
ArgumentNullException
public java.lang.String[] GetDateTimeFormats(IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, FormatException, OverflowException
public int getDay()
throws java.lang.Throwable
java.lang.Throwablepublic DayOfWeek getDayOfWeek() throws java.lang.Throwable
java.lang.Throwablepublic int getDayOfYear()
throws java.lang.Throwable
java.lang.Throwablepublic int getHour()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic DateTimeKind getKind() throws java.lang.Throwable
java.lang.Throwablepublic int getMicrosecond()
throws java.lang.Throwable
java.lang.Throwablepublic int getMillisecond()
throws java.lang.Throwable
java.lang.Throwablepublic int getMinute()
throws java.lang.Throwable
java.lang.Throwablepublic int getMonth()
throws java.lang.Throwable
java.lang.Throwablepublic int getNanosecond()
throws java.lang.Throwable
java.lang.Throwablepublic static DateTime getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, CultureNotFoundException, SecurityException, IOException, NullReferenceException
public int getSecond()
throws java.lang.Throwable
java.lang.Throwablepublic long getTicks()
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan getTimeOfDay() throws java.lang.Throwable
java.lang.Throwablepublic static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, NullReferenceException
public TypeCode GetTypeCode() throws java.lang.Throwable
java.lang.Throwablepublic static DateTime getUtcNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionpublic int getYear()
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsDaylightSavingTime()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
CultureNotFoundException,
SecurityException,
UnauthorizedAccessException,
IOException,
NullReferenceException,
IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionpublic static boolean IsLeapYear(int year)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static DateTime Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, TypeInitializationException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionTypeInitializationExceptionOverflowExceptionpublic static DateTime Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionOverflowExceptionpublic static DateTime Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionOverflowExceptionpublic static DateTime ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTime ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTime ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTime ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static DateTime SpecifyKind(DateTime value, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public TimeSpan Subtract(DateTime value) throws java.lang.Throwable
java.lang.Throwablepublic DateTime Subtract(TimeSpan value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public long ToBinary()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
CultureNotFoundException,
SecurityException,
UnauthorizedAccessException,
IOException,
NullReferenceException,
IndexOutOfRangeException,
OverflowException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionpublic long ToFileTime()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
SecurityException,
InvalidOperationException,
IOException,
NullReferenceException,
NotSupportedException
public long ToFileTimeUtc()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
SecurityException,
InvalidOperationException,
IOException,
NullReferenceException,
NotSupportedException
public DateTime ToLocalTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionOverflowExceptionIndexOutOfRangeExceptionpublic java.lang.String ToLongDateString()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public java.lang.String ToLongTimeString()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public double ToOADate()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
OverflowException
public java.lang.String ToShortDateString()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public java.lang.String ToShortTimeString()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, SecurityException, OverflowException, FormatException, InvalidOperationException, IndexOutOfRangeException, CultureNotFoundException
public java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
SecurityException,
OverflowException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException
public DateTime ToUniversalTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
DateTimeStyles styles,
JCORefOut<DateTime> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionOverflowExceptionpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateTime> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException,
IndexOutOfRangeException,
OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionOverflowExceptionpublic static boolean TryParse(java.lang.String s,
JCORefOut<DateTime> result)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
TypeInitializationException,
InvalidOperationException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentOutOfRangeExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionTypeInitializationExceptionInvalidOperationExceptionOverflowExceptionpublic static boolean TryParseExact(java.lang.String s,
java.lang.String[] formats,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateTime> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
NullReferenceException,
OverflowException,
OutOfMemoryException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static boolean TryParseExact(java.lang.String s,
java.lang.String format,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateTime> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
NullReferenceException,
OverflowException,
OutOfMemoryException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatException