FromHours()

TimeSpan::FromHours(double) method

Returns a new TimeSpan object that represents the specified interval.

static TimeSpan System::TimeSpan::FromHours(double value)

Arguments

ParameterTypeDescription
valuedoubleThe time interval expressed as the number of hours.

Return Value

A new TimeSpan object that represents the specified interval.

See Also