TIME_HOUR

TIME_HOUR

RETURNS THE CURRENT HOUR

  • Type: System Variable
  • Parameter: 0
  • Group: System

ACTION

The system variable TIME_HOUR returns the current hour as number.

SYNTAX: TIME_HOUR in an expression

USE

  • The system variable TIME_HOUR is used to know the current hour.

ERROR

  • None.

EXAMPLE

print "current time "+time$

print "current hour "+str$(time_hour)

print "current minute "+str$(time_minute)

print "current second "+str$(time_second)

SEE ALSO

TIME$

TIME_HOUR

TIME_MINUTE

TIME_SECOND