do_gettimeofday(&tv1)
current_kernel_time()
do_gettimeofday function returns a value like that when the time was about 21:42: "1260819441.705069"
and current_kernel_time() function returns a value similar to do_gettimeofday's value.
the print code is for tv1:
len += sprintf(buf,"%10i.%06i\n",(int) tv1.tv_sec, (int) tv1.tv_usec);
I don't know what these functions returns which time.
I want to get the time as "21:42"; (sure the time might be as seconds or hour and minute variables)
Is there a function for this ?