Mono Class Library: System.DateTime Overview | Members

System.DateTime.AddTicks Method

Adds a specified number of ticks to the value of the current instance. [Edit]

public DateTime AddTicks (long value)

Parameters

value
A long containing the number of 100-nanosecond ticks. value can be positive or negative. [Edit]

Returns

A DateTime instance set to the sum of the date and time represented by the current instance and the time represented by value. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe resulting DateTime is less than DateTime.MinValue or greater than DateTime.MaxValue. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0