TimeSpan.Divide Method

Definition

Overloads

Divide(Double)

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

Divide(TimeSpan)

Returns a new Double value that's the result of dividing this instance by ts.

Divide(Double)

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

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

C#
public TimeSpan Divide(double divisor);

Parameters

divisor
Double

The value to be divided by.

Returns

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

Applies to

.NET 9 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
.NET Standard 2.1

Divide(TimeSpan)

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

Returns a new Double value that's the result of dividing this instance by ts.

C#
public double Divide(TimeSpan ts);

Parameters

ts
TimeSpan

The value to be divided by.

Returns

A new value that represents result of dividing this instance by the value of ts.

Applies to

.NET 9 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
.NET Standard 2.1