Packages

class TimeSpan extends AnyRef

Represents a time interval.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeSpan
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TimeSpan(days: Int, hours: Int, minutes: Int, seconds: Int, milliseconds: Int)

    Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, seconds, and milliseconds.

    Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, seconds, and milliseconds.

    days

    Number of days.

    hours

    Number of hours.

    minutes

    Number of minutes.

    seconds

    Number of seconds.

    milliseconds

    Number of milliseconds.

  2. new TimeSpan(days: Int, hours: Int, minutes: Int, seconds: Int)

    Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, and seconds.

    Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, and seconds.

    days

    Number of days.

    hours

    Number of hours.

    minutes

    Number of minutes.

    seconds

    Number of seconds.

  3. new TimeSpan(hours: Int, minutes: Int, seconds: Int)

    Initializes a new instance of the TimeSpan class to a specified number of hours, minutes, and seconds.

    Initializes a new instance of the TimeSpan class to a specified number of hours, minutes, and seconds.

    hours

    Number of hours.

    minutes

    Number of minutes.

    seconds

    Number of seconds.

  4. new TimeSpan(ticks: Long)

    Initializes a new instance of the TimeSpan class to the specified number of ticks.

    Initializes a new instance of the TimeSpan class to the specified number of ticks.

    ticks

    A time period expressed in 100-nanosecond units.

  5. new TimeSpan()

    Creates an instance of Timespan.

  6. new TimeSpan(internalTimeSpan: NCTimeSpan)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Add(ts: TimeSpan): TimeSpan

    Returns a new TimeSpan object whose value is the sum of the specified TimeSpan object and this instance.

    Returns a new TimeSpan object whose value is the sum of the specified TimeSpan object and this instance.

    ts

    The time interval to add.

    returns

    A new object that represents the value of this instance plus the value of ts.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getDays: Int

    Gets the days component of the time interval represented by the current TimeSpan class.

    Gets the days component of the time interval represented by the current TimeSpan class.

    returns

    The day component of this instance. The return value can be positive or negative.

  11. def getHours: Int

    Gets the hours component of the time interval represented by the current TimeSpan class.

    Gets the hours component of the time interval represented by the current TimeSpan class.

    returns

    The hour component of the current TimeSpan class. The return value anges from -23 through 23.

  12. def getMilliseconds: Int

    Gets the milliseconds component of the time interval represented by the current TimeSpan class.

    Gets the milliseconds component of the time interval represented by the current TimeSpan class.

    returns

    The millisecond component of the current TimeSpan class. The return value ranges from -999 through 999.

  13. def getMinutes: Int

    Gets the minutes component of the time interval represented by the current TimeSpan class.

    Gets the minutes component of the time interval represented by the current TimeSpan class.

    returns

    The minute component of the current TimeSpan class. The return value ranges from -59 through 59.

  14. def getSeconds: Int

    Gets the seconds component of the time interval represented by the current TimeSpan class.

    Gets the seconds component of the time interval represented by the current TimeSpan class.

    returns

    The second component of the current TimeSpan class. The return value ranges from -59 through 59.

  15. def getTotalDays: Double

    Gets the value of the current TimeSpan class expressed in whole and fractional days.

    Gets the value of the current TimeSpan class expressed in whole and fractional days.

    returns

    The total number of days represented by this instance.

  16. def getTotalHours: Double

    Gets the value of the current TimeSpan class expressed in whole and fractional hours.

    Gets the value of the current TimeSpan class expressed in whole and fractional hours.

    returns

    The total number of hours represented by this instance.

  17. def getTotalMilliseconds: Double

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    returns

    The total number of milliseconds represented by this instance.

  18. def getTotalMinutes: Double

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    returns

    The total number of minutes represented by this instance.

  19. def getTotalSeconds: Double

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    Gets the value of the current TimeSpan class expressed in whole and fractional milliseconds.

    returns

    The total number of seconds represented by this instance.

  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped