Numeric.NumericInit, Numeric.ValueHelper
Unit.UnitInit
Constructor and Description |
---|
Time(double value,
UnitType unitType)
Initializes a new time object.
|
Modifier and Type | Method and Description |
---|---|
protected double |
onConvert(double value,
UnitType fromType,
UnitType toType)
Called when unit is converted to the specified unit type.
|
static Time |
op_Addition(Time a,
Time b)
Implements the operator +.
|
static boolean |
op_Equality(Time a,
Time b)
Implements the operator ==.
|
static boolean |
op_GreaterThan(Time a,
Time b)
Implements the operator >.
|
static boolean |
op_GreaterThanOrEqual(Time a,
Time b)
Implements the operator >=.
|
static boolean |
op_Inequality(Time a,
Time b)
Implements the operator !
|
static boolean |
op_LessThan(Time a,
Time b)
Implements the operator <.
|
static boolean |
op_LessThanOrEqual(Time a,
Time b)
Implements the operator <=.
|
static Time |
op_Subtraction(Time a,
Time b)
Implements the operator -.
|
compareTo, equals, getValue, getValue, hashCode, initialize
equals, fromCentimeters, fromDegrees, fromDotsPerCentimeters, fromDotsPerInch, fromDotsPerPixel, fromGradians, fromHertz, fromInches, fromKiloHertz, fromMillimeters, fromMilliseconds, fromPicas, fromPixels, fromPoints, fromQuarterMillimeters, fromRadians, fromSeconds, fromTurns, getUnitType
public Time(double value, UnitType unitType)
Initializes a new time object.
value
- The value.unitType
- Type of the unit.public static Time op_Addition(Time a, Time b)
Implements the operator +.
a
- Parameter a.b
- Parameter b.com.aspose.ms.System.ArgumentNullException
- Arguments are nullcom.aspose.ms.System.ArgumentException
- Arguments have different types
or
Arguments have different resolution
orpublic static Time op_Subtraction(Time a, Time b)
Implements the operator -.
a
- The parameter a.b
- The parameter b.com.aspose.ms.System.ArgumentNullException
- Arguments are nullcom.aspose.ms.System.ArgumentException
- Arguments have different types
or
Arguments have different resolutions
orpublic static boolean op_LessThan(Time a, Time b)
Implements the operator <.
a
- The parameter a.b
- The parameter b.com.aspose.ms.System.ArgumentException
- Arguments have different typescom.aspose.ms.System.ArgumentNullException
- An argument is nullpublic static boolean op_GreaterThan(Time a, Time b)
Implements the operator >.
a
- The parameter a.b
- The parameter b.com.aspose.ms.System.ArgumentException
- Arguments have different typescom.aspose.ms.System.ArgumentNullException
- An argument is nullpublic static boolean op_LessThanOrEqual(Time a, Time b)
Implements the operator <=.
a
- The parameter a.b
- The parameter b.com.aspose.ms.System.ArgumentException
- Arguments have different typescom.aspose.ms.System.ArgumentNullException
- An argument is nullpublic static boolean op_GreaterThanOrEqual(Time a, Time b)
Implements the operator >=.
a
- The parameter a.b
- The parameter b.com.aspose.ms.System.ArgumentException
- Arguments have different typescom.aspose.ms.System.ArgumentNullException
- An argument is nullpublic static boolean op_Equality(Time a, Time b)
Implements the operator ==.
a
- The parameter a.b
- The parameter b.public static boolean op_Inequality(Time a, Time b)
Implements the operator !=.
a
- The parameter a.b
- The parameter b.