Navigation:  ThinBASIC Language > thinBasic Functions > Date and Time > cDateTime > cDateTime_Methods >

<cDateTime>.AddHours

Previous pageReturn to chapter overviewNext page

 

Description

 

Adds the specified number of hours to the value of this cDateTime object.

You can subtract by using a negative number.

 

Syntax

 

<cDateTime>.AddHours(nHours)

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning

nHours

Numeric

No

Positive or negative hours to add or subtract

 

Remarks

 

Restrictions

 

See also

 

Examples