How can I print only the current time (not the date) to a file? I need it in this format...
13:55:36
I've tried a few different ideas but they all include the date too.
How can I print only the current time (not the date) to a file? I need it in this format...
13:55:36
I've tried a few different ideas but they all include the date too.
Try perusing this ctime reference
A combination of using time()
, localtime()
, strftime()
, and the struct tm
should get you there