Hour Method

Official Content
This documentation is valid for:

Returns a numeric value representing the time in 24-hour format.

Syntax

datetime-expression.Hour()

Type Returned:
Numeric(2)

Description

Returns a numeric value representing the time in 24-hour format given a datetime argument.

Example

If &HappyTime.Hour() > 20
   &TxtHour = "Is the After-eight time!"
EndIf 

Scope

Objects: Procedures, Transactions, Web PanelsWork Panels
Languages: .NET, Ruby (up to GeneXus X Evolution 3), Java, RPG, Visual FoxPro (up to GeneXus X Evolution 3), Cobol

See Also

TimeZone Support - General Considerations
Hour Function
Minute Method
Second Method





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.