second()

Gets system's second

Example

text('Computer Seconds:',200,250)
text(second(), width/2, height/2)

Syntax

second()

Description

It communicates with the clock on your computer and returns the current second of the minute as an integer, ranging from 0 to 59.

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