TimeSpan.Abs() Method

Top 

Description

Returns the absolute value of the TimeSpan.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.Abs(

)

 

 

Return Value

Type:

timespan

Units:

day

 

 

The absolute value of the TimeSpan.

 

Syntax

myTimeSpan1 = myTimeSpan2.Abs();

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times