xtd 0.2.0
Loading...
Searching...
No Matches

◆ time_span() [6/8]

xtd::time_span::time_span ( int32  days,
int32  hours,
int32  minutes,
int32  seconds,
int32  milliseconds 
)

Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, and millisonds.

Parameters
daysNumber of days.
hoursNumber of hours.
minutesNumber of minutes.
secondsNumber of seconds.
millisecondsNumber of milliseconds.
Exceptions
xtd::argument_out_of_range_exceptionThe parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value.
Remarks
The specified days, hours, minutes, seconds, and millisonds are converted to ticks, and that value initializes this instance.