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

◆ time_span() [8/8]

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

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

Parameters
daysNumber of days.
hoursNumber of hours.
minutesNumber of minutes.
secondsNumber of seconds.
millisecondsNumber of milliseconds.
microsecondsNumber of microseconds.
nanosecondsNumber of nanoseconds.
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, millisonds and microseconds are converted to ticks, and that value initializes this instance.