TimeSpan.Parse(String) Method

Top 

Description

Creates a TimeSpan from a string value.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.Parse(

String seconds)

 

 

Arguments

seconds


Description:

A decimal string representation of a TimeSpan in seconds.

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

Returns the created TimeSpan representing the string value.

 

Syntax

myTimeSpan1 = TimeSpan.Parse(myString1);

 

 

See also

TimeSpan Object

TimeSpan.Parse

TimeSpans Guide

Parsing Dates and Times