FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. 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  

month()

   
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 month() function returns the current month as a value from 1 - 12.
   
Syntax  
month()
   
Returns   int
   
Usage   Web & Application
   
Related   millis()
second()
minute()
hour()
day()
month()
year()
 
 






   
 
Updated: Fri Jul 15 16:35:49 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info