Official Content

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

Syntax

DateTime-expression.Hour()

Type Returned:
Numeric(2)

Scope

Objects: Procedure, Transaction, Web PanelWork Panel
Generators: .NET, .NET Framework, Java, Cobol, RPG, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

When given a DateTime argument, this method returns a numeric value representing the time in 24-hour format.

Samples

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

See Also

TimeZone Support - General Considerations
Hour function
Minute method
Second method

   


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant