kaven-basic - v4.5.1
    Preparing search index...

    Class TimeSpan

    Represents a duration of time and provides methods to access individual components of the duration (milliseconds, seconds, minutes, etc.).

    4.3.0

    2023-11-27

    Index

    Constructors

    • Constructs a TimeSpan object.

      Parameters

      • milliseconds: number

        The total duration in milliseconds.

      Returns TimeSpan

    • Constructs a TimeSpan object from an existing ITimeSpan object.

      Parameters

      • span: ITimeSpan

        An ITimeSpan object containing the duration.

      Returns TimeSpan

    Accessors

    • get Days(): number

      Gets the whole days in the duration.

      Returns number

    • get Hours(): number

      Gets the whole hours in the duration.

      Returns number

    • get Milliseconds(): number

      Gets the remaining milliseconds after extracting whole seconds.

      Returns number

    • get Minutes(): number

      Gets the whole minutes in the duration.

      Returns number

    • get Seconds(): number

      Gets the whole seconds in the duration.

      Returns number

    • get Span(): ITimeSpan

      Gets the TimeSpan representation of the duration, breaking down the total duration into individual components.

      Returns ITimeSpan

      An ITimeSpan object representing the duration.

    • get TotalDays(): number

      Gets the total duration in whole days.

      Returns number

    • get TotalHours(): number

      Gets the total duration in whole hours.

      Returns number

    • get TotalMilliseconds(): number

      Gets the total duration in milliseconds.

      Returns number

    • get TotalMinutes(): number

      Gets the total duration in whole minutes.

      Returns number

    • get TotalSeconds(): number

      Gets the total duration in whole seconds.

      Returns number

    • get TotalWeeks(): number

      Gets the total duration in whole weeks.

      Returns number

    • get Weeks(): number

      Gets the whole weeks in the duration.

      Returns number