Name

second()

Examples
background(204)
s = second()  # Values from 0 - 59
m = minute()  # Values from 0 - 59
h = hour()  # Values from 0 - 23
line(s, 0, s, 33)
line(m, 33, m, 66)
line(h, 66, h, 100)
Description Processing communicates with the clock on your computer. The second() function returns the current second as an integer from 0 - 59.
Syntax
second()
Related millis()
minute()
hour()
day()
month()
year()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License