TimeSpan.FromSecondsAndFractionalSeconds(Variable, Variable) Method

Top 

Description

Creates a TimeSpan from a seconds/fractional-seconds pair. The sign of each component must be the same.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.FromSecondsAndFractionalSeconds(

Variable seconds,


Variable fractionalSeconds)

 

 

Arguments

seconds


Description:

The whole number of seconds.

Units:

s

Valid Range:

-315576000000 ≤ seconds ≤ 315576000000

 

 

fractionalSeconds


Description:

The fractional seconds.

Units:

s

Valid Range:

-1 ≤ fractionalSeconds ≤ 1

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

Returns a TimeSpan from a seconds/fractional-seconds pair.

 

Syntax

myTimeSpan1 = TimeSpan.FromSecondsAndFractionalSeconds(myVariable1, myVariable2);

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times