year() \ Language (API) \ Processing 1.0
Search processing.org:
Language (A-Z) \
Libraries \
Tools \
Environment \
Compare \
Troubleshooting
Reference for Processing version 1.0+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name
year()
Examples
void setup() {
PFont metaBold;
metaBold = loadFont("fonts/Meta-Bold.vlw.gz");
setFont(metaBold, 44);
noLoop();
}
void draw() {
int d = day(); // Values from 1 - 31
int m = month(); // Values from 1 - 12
int y = year(); // 2003, 2004, 2005, etc.
String s = String.valueOf(d);
text(s, 10, 28);
s = String.valueOf(m);
text(s, 10, 56);
s = String.valueOf(y);
text(s, 10, 84);
}
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()
Returns
int
Usage
Web & Application
Related
millis() second()minute()hour()day()month()year()
Updated on November 22, 2008 08:39:25pm PST
Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.
© Info \
Site hosted by Media Temple!
Wyszukiwarka
Podobne podstrony:
B H Roman Jakobson in His 85th Yeargap year adventures ebookBlaise S New Year, New Love, New Challenge [Dreamspinner Mistletoe Madness MM] (pdf)Year II SLA #10 The Age Factor in SLAmonths of the yearYear of the Big Thaw Marion Zimmer BradleyYear One SLA #8 Aptitude and Intelligence12 Months in a YearSophomore YearThe Seasons of the YearLife in the year 2200function mcal is leap year18 Year Old Virgin (2009) KomediaLeap Year TS XVID IMAGiNEYear II SLA #9 Bilingualism and MultilingualismSłomiany wdowiec (The Seven Year Itch)Sean Michael A Hammer Novel 31 New Legs, New YearABBA Happy new Yearwięcej podobnych podstron