TimeSpan.FromSeconds(Variable) Method

Top 

Description

Creates a TimeSpan from a value of seconds.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.FromSeconds(

Variable seconds)

 

 

Arguments

seconds


Description:

The number of seconds.

Units:

s

Valid Range:

-315576000000 ≤ seconds ≤ 315576000000

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

Returns a TimeSpan representing the input number of seconds.

 

Syntax

myTimeSpan1 = TimeSpan.FromSeconds(myVariable1);

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times