- TIBCO BusinessEvents®
- Standard
- DateTime

# DateTime.addHour()

## Signature

`DateTime addHour(DateTime date, int hours)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Adds a number of hours to a DateTime and returns the result. The input DateTime is not modified.

## Parameters

Name | Type | Description
--- | --- | ---
`date` | `DateTime` | A DateTime to add some amount of time to.
`hours` | `int` | The number of hours to add to the DateTime.

## Returns

Type | Description
--- | ---
`DateTime` | A new DateTime that results from adding the number of time units to the `date` argument.

## Cautions

none