minute() and hour() mistake
in
Programming Questions
•
1 year ago
Hi,
I want to use second(), minute() and hour() function. But there is a problem about minute() and hour() funcs. The program shows "4:37:20". But system time is "12:07:20". "Hour" information gives 8, "Minute" gives 30 differences.
Here is my simple code. How can i solve this problem.
- void setup()
- {
- size(200,200);
- smooth();
- }
- void draw()
- {
- background(204);
- fill(0);
- text(hour() + ":" + minute() + ":" + second(), 20, 50);
- }
1