How to show the time on screen

How to show the time on screen, for example, now time is 2:20 pm, May 10th, 2018, How can I show those information on my screen?

use ofGetTimestampString(); to get a string.
you can specify the format passing a string to the function.

then the simplest way yo put it on screen is using ofDrawBitmapString(string, x, y)

1 Like

Thanks very much!