hour()

Get system's hour

Example

text('Current Hour:',200,250)
text(hour(), width/2, height/2)

Syntax

hour()

Description

It returns the current hour of the day as an integer, ranging from 0 to 23.

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated