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

◆ from_duration() [1/2]

static date_time xtd::date_time::from_duration ( const time_span value)
static

Converts the specified xtd::time_span to an equivalent unspecified time.

Parameters
valueA time interval from the start of the Clock's epoch.
Returns
An object that represents the unspecified time equivalent of the date and time represented by the file_time parameter.
Exceptions
xtd::argument_out_of_range_exceptionvalue is less than xtd::date_time:min_value or represents a time greater than xtd::date_time:max_value.