Represents a TimeSpan property. A time span is used to measure the time between two points in time.

interface TimeSpan {
    days: number;
    hours: number;
    milliseconds: number;
    minutes: number;
    seconds: number;
    totalHours: number;
    totalMilliseconds: number;
    totalMinutes: number;
    totalSeconds: number;
}

Properties

days: number

The day part of the instance.

hours: number

The hour part of the instance.

milliseconds: number

The millisecond part of the instance.

minutes: number

The minute part of the instance.

seconds: number

The second part of the instance.

totalHours: number

The total number of hours of the instance.

totalMilliseconds: number

The total number of milliseconds of the instance.

totalMinutes: number

The total number of minutes of the instance.

totalSeconds: number

The total number of seconds of the instance.