hour()

Get system's hour

Example

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

Syntax

Description

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

circle-info

Find these documents helpful? Let the people who made them help your child learn to code at Strivematharrow-up-right!

We'd love to hear your Feedback/Comments herearrow-up-right.

Last updated