DateTimeUtil.addHours(utcdatetime, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified number of hours to a utcdatetime value.
public:
static Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime addHours(Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime _t, int _value);
public static Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime addHours (Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime _t, int _value);
static member addHours : Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime * int -> Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
Public Shared Function addHours (_t As utcdatetime, _value As Integer) As utcdatetime
Parameters
- _t
- Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
The number of hours to add.
- _value
- Int32
The number of hours to add.
Returns
Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
A new utcdatetime value.
Remarks
If the value of the value parameter is negative, hours will be subtracted.