> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://itct.sketchpad.cc/sp/pad/view/ro.fcimbnEDRf1/rev.75
 * 
 * authors: 
 *   JongHwan Oh

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



/*
sketchpad 에서는 시간, 분, 초가 안먹히고 날짜만 먹히는 것 같네요.
코드를 긁어서 processing 프로그램에 붙여넣으면 시, 분 초도 확인할 수 있을 거에요.

*/
PFont myfont;
void setup(){
  size(400,400);
  myfont = createFont("Georgia", 48);
  textFont(myfont,24);
}


void draw(){
  background(0);
  int d = day();
  int y = year();
  int m = month();
  int h = hour();
  int mm = minute();
  int s = second();
  String today = y + " / " + m + " / " + d;
  textAlign(CENTER);
  text(today, width/2, height/2);
  String time = String.format("%02d", h) + " : " + String.format("%02d", mm) + " : " + String.format("%02d", s);
  text(time, width/2, height/2 + 100);
}