Share via


DateTimeUtil::addHours Method

Adds the specified number of hours to a utcdatetime value.

Syntax

client server public static utcdatetime addHours(utcdatetime t, int value)

Run On

Called

Parameters

  • t
    Type: utcdatetime
    A utcdatetime value to which to add hours.
  • value
    Type: int
    The number of hours to add.

Return Value

Type: utcdatetime
A new utcdatetime value.

Remarks

If the value of the value parameter is negative, hours will be subtracted.

See Also

Reference

DateTimeUtil Class