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?

hi,
use ofGetTimestampString(); to get a string.
you can specify the format passing a string to the function.
https://openframeworks.cc/documentation/utils/ofUtils/#show_ofGetTimestampString

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

1 Like

Thanks very much!