TimeSpan.Division Operator

Definition

Overloads

Division(TimeSpan, TimeSpan)

Returns a new Double value that's the result of dividing t1 by t2.

Division(TimeSpan, Double)

Returns a new TimeSpan object whose value is the result of dividing the specified timeSpan by the specified divisor.

Division(TimeSpan, TimeSpan)

Source:
TimeSpan.cs
Source:
TimeSpan.cs
Source:
TimeSpan.cs

Returns a new Double value that's the result of dividing t1 by t2.

C#
public static double operator /(TimeSpan t1, TimeSpan t2);

Parameters

t1
TimeSpan

The divident or the value to be divided.

t2
TimeSpan

The value to be divided by.

Returns

A new value that represents result of dividing t1 by the value of t2.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

Division(TimeSpan, Double)

Source:
TimeSpan.cs
Source:
TimeSpan.cs
Source:
TimeSpan.cs

Returns a new TimeSpan object whose value is the result of dividing the specified timeSpan by the specified divisor.

C#
public static TimeSpan operator /(TimeSpan timeSpan, double divisor);

Parameters

timeSpan
TimeSpan

Dividend or the value to be divided.

divisor
Double

The value to be divided by.

Returns

A new object that represents the value of timeSpan divided by the value of divisor.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1