is there a way i can display time(only) in hh:mm:ss format within a c code

i use ubuntu and i tried date command in linux within a printf command but it did not work

what is missing here

i'm new to this fourm and bit new to c programming

any helpful tutorial links?

thank you