com.aspose.html.drawing

Class Time

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Unit>


    public final class Time
    extends Dimension

    Represents a time unit.

    • Constructor Detail

      • Time

        public Time(double value,
                    UnitType unitType)

        Initializes a new time object.

        Parameters:
        value - The value.
        unitType - Type of the unit.
    • Method Detail

      • op_Addition

        public static Time op_Addition(Time a,
                                       Time b)

        Implements the operator +.

        Parameters:
        a - Parameter a.
        b - Parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Arguments are null
        com.aspose.ms.System.ArgumentException - Arguments have different types or Arguments have different resolution or
      • op_Subtraction

        public static Time op_Subtraction(Time a,
                                          Time b)

        Implements the operator -.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Arguments are null
        com.aspose.ms.System.ArgumentException - Arguments have different types or Arguments have different resolutions or
      • op_LessThan

        public static boolean op_LessThan(Time a,
                                          Time b)

        Implements the operator <.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_GreaterThan

        public static boolean op_GreaterThan(Time a,
                                             Time b)

        Implements the operator >.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_LessThanOrEqual

        public static boolean op_LessThanOrEqual(Time a,
                                                 Time b)

        Implements the operator <=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_GreaterThanOrEqual

        public static boolean op_GreaterThanOrEqual(Time a,
                                                    Time b)

        Implements the operator >=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_Equality

        public static boolean op_Equality(Time a,
                                          Time b)

        Implements the operator ==.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
      • op_Inequality

        public static boolean op_Inequality(Time a,
                                            Time b)

        Implements the operator !=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.