Digital Clock AM/PM problem
in
Programming Questions
•
2 years ago
Hey guys,
Im new to processing and I am trying to make a digital clock but for the life of me i cannot find how to input a simple "AM/PM" on the left side of my time read out. Heres my code:
void setup() {
size (200,100);
}
void draw() {
background(100,100,100);
int s = second();
int m = minute();
int h = hour();
text(h+":"+m+":"+s, 15, 50);
}
[Moderator's note: removed the superfluous superlatives and useless words (we know already it is a question and that you are looking for help) from the title (for the record, was: Digital Clock SUPER Quick Question HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!) Simplicity is preferred...]
[Moderator's note: removed the superfluous superlatives and useless words (we know already it is a question and that you are looking for help) from the title (for the record, was: Digital Clock SUPER Quick Question HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!) Simplicity is preferred...]
1