aqDateTime.GetHours Method

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

Use the aqDateTime.GetHours method to get the hours part of the specified Date/Time value. The method uses the 24-hour format.

Declaration

aqDateTime.GetHours(InputDate)

InputDate [in]    Required    Date/Time    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

InputDate

Specifies the Date/Time value whose hours portion you want to obtain.

Result Value

An integer number ranging from 0 to 23 that corresponds to the hours part of the given time value.

See Also

Working With Dates
Working With Time
GetDayOfWeek Method
GetDayOfYear Method
GetDay Method
GetMonth Method
GetYear Method
GetMinutes Method
GetSeconds Method

Highlight search results