aqDateTime.GetHours Method

Applies to TestComplete 12.60, last modified on September 17, 2018

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
aqDateTime.GetDayOfWeek Method
aqDateTime.GetDayOfYear Method
aqDateTime.GetDay Method
aqDateTime.GetMonth Method
aqDateTime.GetYear Method
aqDateTime.GetMinutes Method
aqDateTime.GetSeconds Method

Highlight search results