Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeSpan

Represents a time span with an associated value and time unit.

Hierarchy

  • TimeSpan

Index

Constructors

Methods

Constructors

constructor

  • Initializes a TimeSpan object.

    Parameters

    Returns TimeSpan

Methods

equals

  • equals(other: any): boolean
  • Returns true of this time span is equal to another time span.

    Parameters

    • other: any

    Returns boolean

getTicks

  • getTicks(): number
  • Returns the value of the time span in ticks, rounded to the nearest whole tick. Used for serialization -- to get a whole value of ticks, use TimeSpan#getValue.

    Returns number

getValue

  • Returns the value of the time span, in a given time unit.

    Parameters

    Returns number

Generated using TypeDoc