Name

year()

Examples
d = day()  # Values from 1 - 31
m = month()  # Values from 1 - 12
y = year()  # 2003, 2004, 2005, etc.
print(d)
print(m)
print(y)
Description Processing communicates with the clock on your computer. The year() function returns the current year as an integer (2003, 2004, 2005, etc).
Syntax
	year()
Related millis()
second()
minute()
hour()
day()
month()
Updated on Sat Dec 1 21:31:10 2018.
Creative Commons License