Hour Procedure

Version 7

Returns the current or specified date/time hour (0-23).

Syntax

[ lHour = ] Hour ( [ dt ] )

The Hour procedure syntax has the following parts:

Name

Type

Description

lHour

Long

Return value: hour day between 0 and 23

dt

[Val] DateTime

Date time if given

Comments

If date time is not specified, current date time is used. 

Example

 

print Hour()   ! prints current day "13"
print Hour(dt) ! prints hour of "dt"

See Also

Day, Month, Year, Minute, Second, DateTime Data Type