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

◆ add_ticks()

date_time xtd::date_time::add_ticks ( int64  value) const

Returns a new xtd::date_time that adds the specified number of ticks to the value of this instance.

Parameters
valueA number of 100-nanosecond ticks. The value parameter can be positive or negative.
Returns
An object whose value is the sum of the date and time represented by this instance and the time represented by value.
Exceptions
xtd::argument_out_of_range_exceptionThe resulting xtd::date_time is less than xtd::date_time::min_value or greater than xtd::date_time::max_value.
Remarks
This method does not change the value of this xtd::date_time. Instead, it returns a new xtd::date_time whose value is the result of this operation.