ofGetTimestampString() ----> get only the time


#1

Hello!
I am trying to reproduce the drawing below and I am using the function:
ofGetTimestampString();

I would like to get only the time without the date, but I don’t understand how to format it. Here is the documentation, but I don’t really understand how to use it.
https://openframeworks.cc/documentation/utils/ofUtils/#show_ofGetTimestampString

Thanks

Luisa

1acc8a9dfa88b5ab93da8d26fd93a95c-440x324


#2

I think what you want is this format:

ofGetTimestampString("%H:%M:%S") 

which should return just the hour, minutes and seconds separated by colons


#3

YEss!!
Thank you so much, Zach!