hi all,

here are some c++ codes to show local time of the running machine.

download time.cpp

#include <iostream>
#include <windows.h>
using namespace std;

int main(){

SYSTEMTIME time;

GetLocalTime (&time);//(c++)
cout<<time.wHour<<”:”<<time.wMinute<<endl;

cout<<”——————–”<<endl;

system(“time /T”); //(dos)

return 0;
}