TimeSpanOperator

Ecng.Common

Implements arithmetic operations for TimeSpan values.

Herda de: BaseOperator<TimeSpan>

Métodos

Add
public override TimeSpan Add(TimeSpan first, TimeSpan second)
result = timeSpanOperator.Add(first, second)

Adds two TimeSpan values.

Compare
public override int Compare(TimeSpan first, TimeSpan second)
result = timeSpanOperator.Compare(first, second)

Compares two TimeSpan values.

Divide
public override TimeSpan Divide(TimeSpan first, TimeSpan second)
result = timeSpanOperator.Divide(first, second)

Divides two TimeSpan values by dividing their ticks.

Multiply
public override TimeSpan Multiply(TimeSpan first, TimeSpan second)
result = timeSpanOperator.Multiply(first, second)

Multiplies two TimeSpan values by multiplying their ticks.

Subtract
public override TimeSpan Subtract(TimeSpan first, TimeSpan second)
result = timeSpanOperator.Subtract(first, second)

Subtracts the second TimeSpan from the first.