Using standard C++ functions how can i get the current time from my system since noon?
I tried:
This won't work.Qt Code:
time_t hours; hours= time(&hours); last_time=hours-12;To copy to clipboard, switch view to plain text mode
Using standard C++ functions how can i get the current time from my system since noon?
I tried:
This won't work.Qt Code:
time_t hours; hours= time(&hours); last_time=hours-12;To copy to clipboard, switch view to plain text mode
Why dont you use ?
QTime::currentTime();
That makes it too easy. The idea is not to use it.
Had you provided the necessary overloaded functions ? (-) and mechanism to create object out of numeric value...last_time=hours-12;
Bookmarks