Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Returns the hour portion from a DateTime expression.
HOUR(tExpression)
Parameters
- tExpression
Specifies a DateTime expression from which HOUR( ) returns the hour.
Return Values
Numeric
Remarks
HOUR( ) returns a numeric value based on a 24 hour format, and is not affected by the current setting of SET HOURS. For example, if SET HOURS is 12 or 24, the following command returns 13:
? HOUR({^1998-02-16 1:00p})
Example
The following example displays the hour portion of the current time and the hour portion of a specific time.
CLEAR
? HOUR(DATETIME( ))
? HOUR({^1998-02-16 10:42a}) && Displays 10
See Also
CTOT( ) | DATE( ) | DATETIME( ) | DTOT( ) | MINUTE( ) | SEC( ) | SECONDS( ) | SET SECONDS | TIME( )