nick34992
4/19/2016 - 3:34 PM

Hour Minute Second. Using processing.js library.

Hour Minute Second. Using processing.js library.

void setup() {
  size(480, 270);
  textSize(40);
}

void draw() {
  background(0);
  String tm = "TIME: " + hour() + ":" + nf(minute(),2) + ":" + nf(second(),2);
  String dy = "DAY: " + day();
  String mn = "MONTH: " + month();
  String yr = "YEAR: " + year();
  text(tm, 80, 70);
  text(dy, 100, 120);
  text(mn, 100, 170);
  text(yr, 100, 220);
}