@tsdotnet/date-time - v1.1.0
    Preparing search index...

    Class TimeSpan

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

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _quantity: number = 0
    _total: ResettableLazy<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 number

    • get total(): TimeSpan

      Provides an standard interface for acquiring the total time.

      Returns TimeSpan

    Methods