Using standard C++ functions how can i get the current time from my system since noon?

I tried:
Qt Code:
  1. time_t hours;
  2. hours= time(&hours);
  3. last_time=hours-12;
To copy to clipboard, switch view to plain text mode 
This won't work.