TimeSpan.ToString Method

Top 

Description

Converts a TimeSpan to a string containing a decimal number representation in units specified by the input argument. If no units are specified the value is returned in units of seconds.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Overload List

Signatures

Return Value

Description

TimeSpan.ToString()

String

Converts a TimeSpan to a string containing a decimal number representation in units specified by the input argument. If no units are specified the value is returned in units of seconds.

TimeSpan.ToString(String units)

String

Converts a TimeSpan to a string containing a decimal number representation in units specified by the input argument. If no units are specified the value is returned in units of seconds.

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times