public class TimeSpan extends ValueType
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.TimeSpan
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TimeSpan() |
TimeSpan(int hours,
int minutes,
int seconds) |
TimeSpan(int days,
int hours,
int minutes,
int seconds) |
TimeSpan(int days,
int hours,
int minutes,
int seconds,
int milliseconds) |
TimeSpan(long ticks) |
TimeSpan(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TimeSpan |
Add(TimeSpan ts) |
static TimeSpan |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TimeSpan, a cast assert is made to check if types are compatible. |
static int |
Compare(TimeSpan t1,
TimeSpan t2) |
int |
CompareTo(NetObject value) |
int |
CompareTo(TimeSpan value) |
TimeSpan |
Duration() |
boolean |
Equals(TimeSpan obj) |
static boolean |
Equals(TimeSpan t1,
TimeSpan t2) |
static TimeSpan |
FromDays(double value) |
static TimeSpan |
FromHours(double value) |
static TimeSpan |
FromMilliseconds(double value) |
static TimeSpan |
FromMinutes(double value) |
static TimeSpan |
FromSeconds(double value) |
static TimeSpan |
FromTicks(long value) |
int |
getDays() |
int |
getHours() |
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
|
int |
getMilliseconds() |
int |
getMinutes() |
int |
getSeconds() |
long |
getTicks() |
double |
getTotalDays() |
double |
getTotalHours() |
double |
getTotalMilliseconds() |
double |
getTotalMinutes() |
double |
getTotalSeconds() |
TimeSpan |
Negate() |
static TimeSpan |
Parse(java.lang.String s) |
static TimeSpan |
Parse(java.lang.String input,
IFormatProvider formatProvider) |
static TimeSpan |
ParseExact(java.lang.String dupParam0,
JCORefOut dupParam1,
IFormatProvider dupParam2) |
static TimeSpan |
ParseExact(java.lang.String dupParam0,
JCORefOut dupParam1,
IFormatProvider dupParam2,
TimeSpanStyles dupParam3) |
static TimeSpan |
ParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider) |
static TimeSpan |
ParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
TimeSpanStyles styles) |
static TimeSpan |
ParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider) |
static TimeSpan |
ParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
TimeSpanStyles styles) |
void |
setJCOInstance(JCObject instance) |
TimeSpan |
Subtract(TimeSpan ts) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider formatProvider) |
static boolean |
TryParse(java.lang.String input,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result) |
static boolean |
TryParse(java.lang.String s,
JCORefOut<TimeSpan> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
TimeSpanStyles styles,
JCORefOut<TimeSpan> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result) |
static boolean |
TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
TimeSpanStyles styles,
JCORefOut<TimeSpan> result) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TimeSpan()
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan(int hours,
int minutes,
int seconds)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic TimeSpan(int days,
int hours,
int minutes,
int seconds)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic TimeSpan(int days,
int hours,
int minutes,
int seconds,
int milliseconds)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic TimeSpan(long ticks)
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan Add(TimeSpan ts) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static TimeSpan cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TimeSpan, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTimeSpan instancejava.lang.Throwable - in case of error during cast operationpublic static int Compare(TimeSpan t1, TimeSpan t2) throws java.lang.Throwable
java.lang.Throwablepublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException
java.lang.ThrowableArgumentExceptionpublic int CompareTo(TimeSpan value) throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan Duration() throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic boolean Equals(TimeSpan obj) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Equals(TimeSpan t1, TimeSpan t2) throws java.lang.Throwable
java.lang.Throwablepublic static TimeSpan FromDays(double value) throws java.lang.Throwable, ArgumentException, OverflowException
java.lang.ThrowableArgumentExceptionOverflowExceptionpublic static TimeSpan FromHours(double value) throws java.lang.Throwable, ArgumentException, OverflowException
java.lang.ThrowableArgumentExceptionOverflowExceptionpublic static TimeSpan FromMilliseconds(double value) throws java.lang.Throwable, ArgumentException, OverflowException
java.lang.ThrowableArgumentExceptionOverflowExceptionpublic static TimeSpan FromMinutes(double value) throws java.lang.Throwable, ArgumentException, OverflowException
java.lang.ThrowableArgumentExceptionOverflowExceptionpublic static TimeSpan FromSeconds(double value) throws java.lang.Throwable, ArgumentException, OverflowException
java.lang.ThrowableArgumentExceptionOverflowExceptionpublic static TimeSpan FromTicks(long value) throws java.lang.Throwable
java.lang.Throwablepublic int getDays()
throws java.lang.Throwable
java.lang.Throwablepublic int getHours()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic int getMilliseconds()
throws java.lang.Throwable
java.lang.Throwablepublic int getMinutes()
throws java.lang.Throwable
java.lang.Throwablepublic int getSeconds()
throws java.lang.Throwable
java.lang.Throwablepublic long getTicks()
throws java.lang.Throwable
java.lang.Throwablepublic double getTotalDays()
throws java.lang.Throwable
java.lang.Throwablepublic double getTotalHours()
throws java.lang.Throwable
java.lang.Throwablepublic double getTotalMilliseconds()
throws java.lang.Throwable
java.lang.Throwablepublic double getTotalMinutes()
throws java.lang.Throwable
java.lang.Throwablepublic double getTotalSeconds()
throws java.lang.Throwable
java.lang.Throwablepublic TimeSpan Negate() throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static TimeSpan Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, ArgumentException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException
public static TimeSpan Parse(java.lang.String input, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, ArgumentException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException
public static TimeSpan ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2) throws java.lang.Throwable, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static TimeSpan ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, TimeSpanStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static TimeSpan ParseExact(java.lang.String input, java.lang.String[] formats, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static TimeSpan ParseExact(java.lang.String input, java.lang.String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static TimeSpan ParseExact(java.lang.String input, java.lang.String format, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException
public static TimeSpan ParseExact(java.lang.String input, java.lang.String format, IFormatProvider formatProvider, TimeSpanStyles styles) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic TimeSpan Subtract(TimeSpan ts) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider formatProvider)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
FormatException
public static boolean TryParse(java.lang.String input,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
ArgumentOutOfRangeException,
TypeInitializationException,
InvalidOperationException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
IndexOutOfRangeException
public static boolean TryParse(java.lang.String s,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
ArgumentOutOfRangeException,
TypeInitializationException,
InvalidOperationException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
IndexOutOfRangeException
public static boolean TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static boolean TryParseExact(java.lang.String input,
java.lang.String[] formats,
IFormatProvider formatProvider,
TimeSpanStyles styles,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
FormatException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static boolean TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
CultureNotFoundException,
NotSupportedException,
IndexOutOfRangeException
public static boolean TryParseExact(java.lang.String input,
java.lang.String format,
IFormatProvider formatProvider,
TimeSpanStyles styles,
JCORefOut<TimeSpan> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
FormatException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
IndexOutOfRangeException