TimeSpan expands on TimeQuantity to provide an class that is similar to .NET's TimeSpan including many useful static methods.

Hierarchy

Implements

Constructors

Properties

_quantity: number = 0
_total: default<Readonly<TimeMeasurement>>
days: number

The total number of ticks that days this amount of time.

hours: number

The total number of ticks that hours this amount of time.

milliseconds: number

The total number of ticks that milliseconds this amount of time.

minutes: number

The total number of ticks that minutes this amount of time.

seconds: number

The total number of ticks that seconds this amount of time.

ticks: number

The total number of ticks that represent this amount of time.

Accessors

  • get direction(): number
  • +1, 0, or -1 depending on the time direction.

    Returns

    Returns number

  • get total(): TimeSpan
  • Provides an standard interface for acquiring the total time.

    Returns

    Returns TimeSpan

Methods

Generated using TypeDoc