TimeSpan.FromDaysAndSecondsOfDay(Variable, Variable) Method

Top 

Description

Creates a TimeSpan from a days/seconds-of-day 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.FromDaysAndSecondsOfDay(

Variable integerDays,


Variable secondsOfDays)

 

 

Arguments

integerDays


Description:

The whole number of days.

Units:

day

Valid Range:

-3652500 ≤ integerDays ≤ 3652500

 

 

secondsOfDays


Description:

The whole and fractional seconds of day.

Units:

s

Valid Range:

-86400 ≤ secondsOfDays ≤ 86400

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

Returns a TimeSpan from a days/seconds-of-day pair.

 

Syntax

myTimeSpan1 = TimeSpan.FromDaysAndSecondsOfDay(myVariable1, myVariable2);

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times