AddTicks()

DateTime::AddTicks(int64_t) const method

Returns a new instance of the DateTime class representing the date and time value which is the sum of the value represented by the current object and the specified number of 100-nanosecond intervals.

DateTime System::DateTime::AddTicks(int64_t value) const

Arguments

ParameterTypeDescription
valueint64_tThe number of 100-nanosecond intervals to add; the value can be positive or negative

Return Value

A new instance of the DateTime class representing the date and time value which is the sum of the value represented by the current object and value of 100-nanosecond intervals

See Also