インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

year()

   
Examples  
void setup() { 
  BFont metaBold; 
  metaBold = loadFont("fonts/Meta-Bold.vlw.gz"); 
  setFont(metaBold, 44); 
  hint(SMOOTH_IMAGES); 
} 
 
void loop() { 
  int d = day();    //1 から 31の値   
  int m = month();  //1 から 12の値   
  int y = year();   // 2003, 2004, 2005, など
  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はコンピューターの時計とコミュニケーションしている。 year()機能は、現在の年 (2003, 2004, 2005など)を整数としてかえす。

 

   
Syntax  
year()
   
Returns   整数
   
Usage   Web & Application
   
Related   millis()
second()
minute()
hour()
day()
month()
year()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas