Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a difference, or measurement of a time value, and has the ability to output that time in many different formats.

Hierarchy

  • TimeSpan

Implements

Index

Constructors

constructor

  • Initializes a new instance of the TimeSpan class, wrapping a numeric value to this object.

    Parameters

    • value: number

      A number that represents the time span in nanoseconds.

    • Optional outputOptions: TimeOutputOptions

      An object that is used to configure the output of this object.

    Returns TimeSpan

Accessors

output

output:

Gets the configurable output object for this object.

value

value:

Gets the numberic value that represents the time span in nanoseconds.

Methods

toHours

  • toHours(): string
  • Gets the time span expressed in hours.

    Returns string

    A string with the time value converted to hours.

toMicroSeconds

  • toMicroSeconds(): string

toMiliSeconds

  • toMiliSeconds(): string

toMinutes

  • toMinutes(): string

toNanoSeconds

  • toNanoSeconds(): string

toSeconds

  • toSeconds(): string

toString

  • toString(): string
  • Gets the time expressed with the most appropriate unit.

    Returns string

    A string with the time value converted to its most appropriate format.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc