I don't exactly get what you'r needs are. If you mean a C/C++ program to read the system time, I can do it.
Code:
#include <iostream>
#include <ctime>
using namespace std;
int main() {
time_t t = time(0);
cout << "The time is : " << ctime(t) << endl;
return 0;
}
Type 'man ctime' in your terminal to get details about the various time structures.