public class DateTimeOffset extends ValueType implements IComparable, ISerializable, IDeserializationCallback
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DateTimeOffset
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=9.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.DateTimeOffset
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DateTimeOffset() |
DateTimeOffset(DateOnly date,
TimeOnly time,
TimeSpan offset) |
DateTimeOffset(DateTime dateTime) |
DateTimeOffset(DateTime dateTime,
TimeSpan offset) |
DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Calendar calendar,
TimeSpan offset) |
DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int microsecond,
Calendar calendar,
TimeSpan offset) |
DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int microsecond,
TimeSpan offset) |
DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
TimeSpan offset) |
DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
TimeSpan offset) |
DateTimeOffset(long ticks,
TimeSpan offset) |
DateTimeOffset(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTimeOffset |
Add(TimeSpan timeSpan) |
DateTimeOffset |
AddDays(double days) |
DateTimeOffset |
AddHours(double hours) |
DateTimeOffset |
AddMicroseconds(double microseconds) |
DateTimeOffset |
AddMilliseconds(double milliseconds) |
DateTimeOffset |
AddMinutes(double minutes) |
DateTimeOffset |
AddMonths(int months) |
DateTimeOffset |
AddSeconds(double seconds) |
DateTimeOffset |
AddTicks(long ticks) |
DateTimeOffset |
AddYears(int years) |
static DateTimeOffset |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DateTimeOffset, a cast assert is made to check if types are compatible. |
static int |
Compare(DateTimeOffset first,
DateTimeOffset second) |
int |
CompareTo(DateTimeOffset other) |
void |
Deconstruct(JCORefOut<DateOnly> date,
JCORefOut<TimeOnly> time,
JCORefOut<TimeSpan> offset) |
boolean |
Equals(DateTimeOffset other) |
static boolean |
Equals(DateTimeOffset first,
DateTimeOffset second) |
boolean |
EqualsExact(DateTimeOffset other) |
static DateTimeOffset |
FromFileTime(long fileTime) |
static DateTimeOffset |
FromUnixTimeMilliseconds(long milliseconds) |
static DateTimeOffset |
FromUnixTimeSeconds(long seconds) |
DateTime |
getDate() |
DateTime |
getDateTime() |
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
|
DateTime |
getLocalDateTime() |
int |
getMicrosecond() |
int |
getMillisecond() |
int |
getMinute() |
int |
getMonth() |
int |
getNanosecond() |
static DateTimeOffset |
getNow() |
TimeSpan |
getOffset() |
int |
getSecond() |
long |
getTicks() |
TimeSpan |
getTimeOfDay() |
int |
getTotalOffsetMinutes() |
DateTime |
getUtcDateTime() |
static DateTimeOffset |
getUtcNow() |
long |
getUtcTicks() |
int |
getYear() |
static DateTimeOffset |
Parse(java.lang.String input) |
static DateTimeOffset |
Parse(java.lang.String input,
IFormatProvider formatProvider) |
static DateTimeOffset |
Parse(java.lang.String input,
IFormatProvider formatProvider,
DateTimeStyles styles) |
static DateTimeOffset |
ParseExact(java.lang.String dupParam0,
JCORefOut dupParam1,
IFormatProvider dupParam2,
DateTimeStyles dupParam3) |
static DateTimeOffset |
ParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
DateTimeStyles styles) |
static DateTimeOffset |
ParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider) |
static DateTimeOffset |
ParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
DateTimeStyles styles) |
void |
setJCOInstance(JCObject instance) |
TimeSpan |
Subtract(DateTimeOffset value) |
DateTimeOffset |
Subtract(TimeSpan value) |
long |
ToFileTime() |
DateTimeOffset |
ToLocalTime() |
DateTimeOffset |
ToOffset(TimeSpan offset) |
java.lang.String |
ToString(IFormatProvider formatProvider) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider formatProvider) |
DateTimeOffset |
ToUniversalTime() |
long |
ToUnixTimeMilliseconds() |
long |
ToUnixTimeSeconds() |
static boolean |
TryParse(java.lang.String input,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result) |
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateTimeOffset> result) |
static boolean |
TryParse(java.lang.String input,
JCORefOut<DateTimeOffset> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringCompareTo, ToIComparableGetObjectData, ToISerializableOnDeserialization, ToIDeserializationCallbackpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DateTimeOffset()
throws java.lang.Throwable
java.lang.Throwablepublic DateTimeOffset(DateOnly date, TimeOnly time, TimeSpan offset) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OverflowException
public DateTimeOffset(DateTime dateTime) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException, OverflowException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionpublic DateTimeOffset(DateTime dateTime, TimeSpan offset) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, CultureNotFoundException, ArgumentNullException, SecurityException, UnauthorizedAccessException, IOException, NullReferenceException, IndexOutOfRangeException, OverflowException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionCultureNotFoundExceptionArgumentNullExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionpublic DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Calendar calendar,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int microsecond,
Calendar calendar,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int microsecond,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
public DateTimeOffset(int year,
int month,
int day,
int hour,
int minute,
int second,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
public DateTimeOffset(long ticks,
TimeSpan offset)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public DateTimeOffset(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DateTimeOffset Add(TimeSpan timeSpan) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddDays(double days) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddHours(double hours) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddMicroseconds(double microseconds) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddMilliseconds(double milliseconds) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddMinutes(double minutes) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddMonths(int months) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddSeconds(double seconds) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddTicks(long ticks) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public DateTimeOffset AddYears(int years) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public static DateTimeOffset cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DateTimeOffset, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDateTimeOffset instancejava.lang.Throwable - in case of error during cast operationpublic static int Compare(DateTimeOffset first, DateTimeOffset second) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public int CompareTo(DateTimeOffset other) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public void Deconstruct(JCORefOut<DateOnly> date, JCORefOut<TimeOnly> time, JCORefOut<TimeSpan> offset) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic boolean Equals(DateTimeOffset other) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static boolean Equals(DateTimeOffset first, DateTimeOffset second) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public boolean EqualsExact(DateTimeOffset other) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static DateTimeOffset FromFileTime(long fileTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, InvalidTimeZoneException, UnauthorizedAccessException, IOException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionInvalidTimeZoneExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionpublic static DateTimeOffset FromUnixTimeMilliseconds(long milliseconds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public static DateTimeOffset FromUnixTimeSeconds(long seconds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public DateTime getDate() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic DateTime getDateTime() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getDay()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic DayOfWeek getDayOfWeek() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getDayOfYear()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getHour()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IComparablegetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IComparablegetJCOClassName in interface IDeserializationCallbackgetJCOClassName in interface ISerializablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IComparablegetJCOInstance in interface IDeserializationCallbackgetJCOInstance in interface ISerializablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IComparablegetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName 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 IComparablegetJCOType in interface IDeserializationCallbackgetJCOType in interface ISerializablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic DateTime getLocalDateTime() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, InvalidTimeZoneException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionInvalidTimeZoneExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionOverflowExceptionpublic int getMicrosecond()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getMillisecond()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getMinute()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getMonth()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getNanosecond()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static DateTimeOffset getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public TimeSpan getOffset() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public int getSecond()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic long getTicks()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic TimeSpan getTimeOfDay() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic int getTotalOffsetMinutes()
throws java.lang.Throwable
java.lang.Throwablepublic DateTime getUtcDateTime() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static DateTimeOffset getUtcNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionpublic long getUtcTicks()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public int getYear()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static DateTimeOffset Parse(java.lang.String input) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, TypeInitializationException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionTypeInitializationExceptionOverflowExceptionpublic static DateTimeOffset Parse(java.lang.String input, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionOverflowExceptionpublic static DateTimeOffset Parse(java.lang.String input, IFormatProvider formatProvider, DateTimeStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, TypeInitializationException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionpublic static DateTimeOffset ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTimeOffset ParseExact(java.lang.String input, java.lang.String[] formats, IFormatProvider formatProvider, DateTimeStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTimeOffset ParseExact(java.lang.String input, java.lang.String format, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static DateTimeOffset ParseExact(java.lang.String input, java.lang.String format, IFormatProvider formatProvider, DateTimeStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic TimeSpan Subtract(DateTimeOffset value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public DateTimeOffset Subtract(TimeSpan value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
public long ToFileTime()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
InvalidTimeZoneException,
SecurityException,
UnauthorizedAccessException,
IOException,
NullReferenceException,
IndexOutOfRangeException,
OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionpublic DateTimeOffset ToLocalTime() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, OverflowException
public DateTimeOffset ToOffset(TimeSpan offset) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public java.lang.String ToString(IFormatProvider formatProvider) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, OutOfMemoryException, InvalidOperationException, FormatException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionArgumentNullExceptionpublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
InvalidTimeZoneException,
SecurityException,
UnauthorizedAccessException,
IOException,
OverflowException,
ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionArgumentNullExceptionpublic java.lang.String ToString(java.lang.String format,
IFormatProvider formatProvider)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
InvalidTimeZoneException,
SecurityException,
UnauthorizedAccessException,
IOException,
OverflowException,
ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionArgumentNullExceptionpublic DateTimeOffset ToUniversalTime() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, InvalidTimeZoneException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionInvalidTimeZoneExceptionUnauthorizedAccessExceptionIOExceptionNullReferenceExceptionOverflowExceptionpublic long ToUnixTimeMilliseconds()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public long ToUnixTimeSeconds()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static boolean TryParse(java.lang.String input,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException,
TypeInitializationException,
OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateTimeOffset> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionOverflowExceptionpublic static boolean TryParse(java.lang.String input,
JCORefOut<DateTimeOffset> result)
throws java.lang.Throwable,
ArgumentNullException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
TypeInitializationException,
InvalidOperationException,
OverflowException
java.lang.ThrowableArgumentNullExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionTypeInitializationExceptionInvalidOperationExceptionOverflowExceptionpublic static boolean TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException,
TypeInitializationException,
OverflowException,
OutOfMemoryException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionpublic static boolean TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
DateTimeStyles styles,
JCORefOut<DateTimeOffset> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException,
TypeInitializationException,
OverflowException,
OutOfMemoryException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException